The application provides a search and recommendation method based on a tourism
knowledge graph. The application comprises: in a
label preparation stage, extracting nouns and corresponding characteristics from a tourism site introduction and comments according to rules and
processing the nouns and the corresponding characteristics into labels; in a model training stage, transmitting the
labeled data into a PEGASUS model pre-trained by LCSTS for training, and then transmitting unlabeled data and debugging; in a search construction stage, associating the graph with a source site and storing the graph in a
database to construct a visual module and a query transmission module of a
system; and in a recommendation construction stage, constructing a recommendation calculation module of the
system. The application has the following advantages: 1. The labels retain the original meaning and the superior-inferior relationship, which facilitates future classification of the graph; 2. Synonyms are processed according to the principle of majority covering minority, so that the labels are generated as uniformly as possible, long-term work is reduced, and the growth of traditional
inverted index vocabulary is avoided; 3. Site reputation feature retrieval is more in line with
user needs than
text retrieval; and 4. Compared with traditional recommendation algorithms, the application is more interpretable.