The invention discloses an offer information generation method based on a
language model, which relates to the field of
natural language processing, and comprises the following steps of: retrieving news data from a multi-source corpus, forming an
original data set, selecting field information of a title, an abstract, a text, a link, a keyword and a
data source from the
original data set, and storing the selected field information into a
database; carrying out null removal and duplicate removal
processing on the title and the text field information, and screening data sources to obtain a to-be-processed
data set; on the basis of the to-be-processed
data set, text vectorization
processing is conducted on the title fields through a
language model pre-trained by Transform,
sentence vectors are obtained, and a
sentence vector set is formed; according to the method, a high-quality to-be-processed
data set is constructed through weighted Boolean retrieval and
MinHash duplicate removal technologies, in the semantic analysis stage,
sentence vectors are generated by adopting a RoBERTa model, unsupervised topic discovery is realized in combination with UMAP
dimensionality reduction and HDBSCAN clustering, and the problem of high-dimensional text clustering is effectively solved.