Tourism product input information error checking method, system, device and storage medium
By building the relationship between dictionary trees and gaining interests, the itinerary and title of tourism products is automatically tested, and the problem of unreasonable stroke planning in existing technology and errors in title enrollment are solved, which improves user experience and reduces manpower consumption.
Patent Information
- Application Number
- CN202210282117.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-22
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2042-03-22
AI Technical Summary
In the prior art, the itinerary planning of tourism products and the information entered in the product title does not match the actual itinerary information, resulting in poor user browsing experience and incorrect search feedback results, and a large amount of manpower is required for testing.
By constructing the latitude and longitude and administrative regional relationships of the dictionary tree and the interested point, extract the itinerary to describe the term in the text, combine the distance to judge the rationality and correctness, and automatically detect the itinerary and title of tourism products.
Effectively reduced the error of the product title, improved the user experience, and reduced human consumption.
Smart Images

Figure CN114626960B_ABST
Abstract
Description
Background Art
[0002] Online travel (Online Travel Agency) is a professional term in the tourism e-commerce industry. It refers to "tourism consumers book travel products or services from travel service providers through the Internet and pay online or offline, that is, each travel entity can conduct product marketing or product sales through the Internet." The emergence of OTA has put the original traditional travel agency sales model on the Internet platform, more widely conveyed route information, and interactive communication has made it more convenient for customers to consult and order.
[0003] With the development of the tourism industry, the number of tourism products is becoming more and more abundant. For many products, there are often errors in product information entry. In tourism products, the errors are mainly concentrated in two categories. First, the itinerary planning of the product is unreasonable; second, the information entered in the product title does not match the actual itinerary information of the product. Both types of errors will lead to poor user browsing experience and incorrect search feedback results. However, manual inspection of each of the many products will consume a lot of manpower.
[0004] Therefore, the present invention provides a method, system, device and storage medium for checking errors in tourism product input information. Summary of the invention
[0005] In response to the problems in the prior art, the purpose of the present invention is to provide a method, system, device and storage medium for checking errors in tourism product entry information, which overcomes the difficulties of the prior art and can detect the itinerary and title of the product by automatically mining point of interest information, effectively reducing the number of errors in product title entry, improving user experience and reducing manpower consumption.
[0006] An embodiment of the present invention provides a method for checking errors in tourism product input information, comprising the following steps:
[0007] Construct a dictionary tree based on the structured POI information contained in the travel product itinerary;
[0008] Obtain the latitude and longitude of the points of interest and the hierarchical relationship between each point of interest and administrative regions at all levels;
[0009] Extracting nouns from the itinerary description text of the unstructured POI information contained in the travel product itinerary, obtaining corresponding city POIs based on the dictionary tree and the hierarchical relationship, and adding them to the POI information; and
[0010] The rationality and correctness are judged at least based on the travel product itinerary and the distances between the various points of interest in the travel product title, and the travel products that do not meet the rationality and / or correctness are output to the wrong travel product itinerary set.
[0011] Preferably, the step of constructing a dictionary tree based on the points of interest included in the tourism product includes:
[0012] Collect all structured POI information contained in tourism products to form a POI dictionary;
[0013] Input the dictionary into the dictionary tree construction algorithm to generate a dictionary tree.
[0014] Preferably, obtaining the longitude and latitude of the points of interest and the hierarchical relationship between each point of interest and administrative regions at all levels includes:
[0015] Build the hierarchical relationship between points of interest and cities;
[0016] Build hierarchical relationships from cities to provinces;
[0017] Build the hierarchical relationship from province to country;
[0018] Get the latitude and longitude of each point of interest.
[0019] Preferably, the obtaining of the longitude and latitude of the points of interest and the hierarchical relationship between each point of interest and administrative regions at all levels further includes: filtering out offline travel products.
[0020] Preferably, the step of extracting nouns from the itinerary description text of the unstructured POI information contained in the travel product itinerary, obtaining corresponding city POIs based on the dictionary tree and the hierarchical relationship, and adding them to the POI information includes:
[0021] Extracting nouns from the itinerary description text of the unstructured points of interest information contained in the travel product itinerary;
[0022] Extracting the city points of interest corresponding to the hotel points of interest corresponding to the noun based on the dictionary tree and the hierarchical relationship, and adding them to the unstructured points of interest information in the tourism product;
[0023] The hierarchical relationship corresponding to the hotel's points of interest is added to the structured points of interest information in the travel product.
[0024] Preferably, judging rationality and correctness based at least on the travel product itinerary and the distances between the various points of interest in the travel product title, and outputting travel products that do not meet rationality and / or correctness to an erroneous travel product itinerary set includes:
[0025] Based on the relationship between the distances between the points of interest passed in the travel product itinerary in time sequence and a preset threshold, obtaining a rationality judgment result of the travel product itinerary;
[0026] Based on the relationship between the distance between any of the points of interest in the tourism product title and any of the points of interest in the tourism product itinerary and a preset threshold, obtaining a result of determining the correctness of the tourism product title;
[0027] The tourism products that do not meet the rationality and / or correctness are output to the wrong tourism product itinerary set.
[0028] Preferably, the obtaining of the tourism product itinerary rationality judgment result of the tourism product itinerary based on the relationship between the intervals between the points of interest passed in the tourism product itinerary in time sequence and a preset threshold value comprises:
[0029] When the distance between any point of interest in the itinerary of the tourism product and another point of interest in the previous and subsequent itineraries is greater than a first threshold, the itinerary of the tourism product is unreasonable;
[0030] When the distance between the hotel point of interest and the scenic spot point of interest in the travel product itinerary is greater than a second threshold, the travel product itinerary is unreasonable;
[0031] When the travel product itinerary includes a round trip between two points of interest on the same day, and the distance between the two points of interest is greater than a third threshold, the travel product itinerary is unreasonable; and
[0032] The itineraries of the remaining tourism products are reasonable.
[0033] Preferably, obtaining the correctness judgment result of the tourism product title based on the relationship between the distance between any of the points of interest in the tourism product title and any of the points of interest in the tourism product itinerary and a preset threshold value includes:
[0034] When any point of interest in the tourism product title and another point of interest in the tourism product itinerary are both greater than a fourth threshold, the tourism product title is incorrect;
[0035] When any point of interest in the tourism product title does not hit the point of interest in the tourism product itinerary and is not the parent point of interest of at least one point of interest in the tourism product itinerary, the tourism product title is incorrect;
[0036] The tour product titles of the remaining tour products described are correct.
[0037] Preferably, the distance calculation formula is:
[0038]
[0039] Where r is the radius of the earth and the latitude of a point of interest is The longitude is λ1, and the latitude of another point of interest is The longitude is λ2.
[0040] The embodiment of the present invention further provides a tourism product input information error checking system, which is used to implement the above-mentioned tourism product input information error checking method, and the tourism product input information error checking system comprises:
[0041] The dictionary tree module builds a dictionary tree based on the structured points of interest information contained in the travel product itinerary;
[0042] The superior-subordinate module obtains the longitude and latitude of the points of interest and the superior-subordinate relationship between each point of interest and administrative regions at all levels;
[0043] A point of interest module extracts nouns from the itinerary description text of the unstructured point of interest information contained in the travel product itinerary, obtains corresponding city points of interest based on the dictionary tree and the hierarchical relationship, and adds them to the point of interest information; and
[0044] The product error checking module judges rationality and correctness based at least on the travel product itinerary and the distances between the various points of interest in the travel product title, and outputs travel products that do not meet rationality and / or correctness to an erroneous travel product itinerary set.
[0045] The embodiment of the present invention also provides a tourism product input information error checking device, comprising:
[0046] processor;
[0047] a memory storing executable instructions of the processor;
[0048] Wherein, the processor is configured to execute the steps of the above-mentioned tourism product entry information error checking method by executing the executable instructions.
[0049] An embodiment of the present invention further provides a computer-readable storage medium for storing a program, which, when executed, implements the steps of the above-mentioned method for checking errors in tourism product entry information.
[0050] The purpose of the present invention is to provide a method, system, device and storage medium for checking errors in tourism product entry information, which can detect the itinerary and title of the product by automatically mining point of interest information, effectively reduce the situation of product title entry errors, improve user experience and reduce manpower consumption. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Other features, objectives and advantages of the present invention will become more apparent from a reading of the detailed description of non-limiting embodiments made with reference to the following accompanying drawings.
[0052] Figure 1 It is a flow chart of the method for checking errors in tourism product input information of the present invention.
[0053] Figure 2 It is a framework diagram of product detection by the tourism product input information error checking method of the present invention.
[0054] Figure 3 It is a diagram of a dictionary tree in the method for checking errors in entering information of tourism products of the present invention.
[0055] Figure 4 It is a module schematic diagram of the tourism product input information error checking system of the present invention.
[0056] Figure 5 It is a structural schematic diagram of the tourism product information entry error checking device of the present invention.
[0057] Figure 6 It is a schematic diagram of the structure of a computer-readable storage medium according to an embodiment of the present invention. DETAILED DESCRIPTION
[0058] The following describes the implementation methods of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the content disclosed in the present application. The present application can also be implemented or applied through other different specific implementation methods, and the details in the present application can also be modified or changed in various ways according to different viewpoints and application systems without departing from the spirit of the present application. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.
[0059] The following is a detailed description of the embodiments of the present application with reference to the accompanying drawings so that those skilled in the art can easily implement the present application. The present application can be embodied in a variety of different forms and is not limited to the embodiments described herein.
[0060] In the representations of the present application, the representations with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" etc. mean that the specific features, structures, materials or characteristics represented in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. Moreover, the represented specific features, structures, materials or characteristics may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples represented in the present application and the features of the different embodiments or examples, unless they contradict each other.
[0061] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the representation of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0062] In order to clearly describe the present application, components irrelevant to the description are omitted, and the same reference symbols are given to the same or similar components throughout the specification.
[0063] Throughout the specification, when a device is said to be "connected" to another device, this includes not only the case of "direct connection" but also the case of "indirect connection" by placing other elements therebetween. In addition, when a device is said to "include" a certain component, unless otherwise stated, it does not exclude other components, but means that other components may be included.
[0064] When a device is said to be "on" another device, it may be directly on the other device, but there may also be other devices between it. In contrast, when a device is said to be "directly" on another device, there are no other devices between it.
[0065] Although the terms first, second, etc. are used to represent various elements in some examples, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element. For example, the first interface and the second interface, etc. are represented. Moreover, as used in this article, the singular forms "one", "one" and "the" are intended to also include plural forms, unless there is an opposite indication in the context. It should be further understood that the terms "comprising" and "including" indicate the existence of features, steps, operations, elements, components, projects, kinds, and / or groups, but do not exclude the existence, occurrence or addition of one or more other features, steps, operations, elements, components, projects, kinds, and / or groups. The terms "or" and "and / or" used herein are interpreted as inclusive, or mean any one or any combination. Therefore, "A, B or C" or "A, B and / or C" means "any of the following: A; B; C; A and B; A and C; B and C; A, B and C". Only when the combination of elements, functions, steps or operations is inherently mutually exclusive in some way, will there be an exception to this definition.
[0066] The technical terms used herein are only used to refer to specific embodiments and are not intended to limit the present application. The singular form used herein also includes the plural form unless the sentence clearly indicates the contrary meaning. The meaning of "including" used in the specification is to specify specific characteristics, regions, integers, steps, operations, elements and / or components, and does not exclude the existence or addition of other characteristics, regions, integers, steps, operations, elements and / or components.
[0067] Although not defined differently, all terms, including technical and scientific terms used herein, have the same meaning as those generally understood by those skilled in the art to which this application belongs. Terms defined in commonly used dictionaries are additionally interpreted as having meanings consistent with the relevant technical literature and the contents of the current disclosure, and unless defined, shall not be overly interpreted as ideal or very formal meanings.
[0068] Figure 1 Flow chart of the method for checking errors in tourism product input information of the present invention. Figure 1 As shown, an embodiment of the present invention provides a method for checking errors in tourism product input information, comprising the following steps:
[0069] S110, constructing a dictionary tree based on the structured POI information included in the travel product itinerary.
[0070] S120, obtaining the longitude and latitude of the points of interest and the hierarchical relationship between each point of interest and administrative regions at all levels.
[0071] S130, extracting nouns from the itinerary description text of the unstructured POI information contained in the travel product itinerary, obtaining corresponding city POIs based on the dictionary tree and the hierarchical relationship, and adding them to the POI information.
[0072] S140: Judging rationality and correctness based at least on the travel product itinerary and the distances between various points of interest in the travel product title, and outputting travel products that do not meet rationality and / or correctness to an erroneous travel product itinerary set.
[0073] The present invention belongs to the category of natural language processing, and mainly uses technologies such as text matching to detect the input information of products. This paper proposes a method for detecting product input errors in tourism scenarios, and uses the POI (point of interest) of the product to achieve automatic detection to improve user experience and reduce manpower consumption. POI is the abbreviation of "Point of Interest", which can be translated into "point of interest" in Chinese. In a geographic information system, a POI can be a house, a shop, a mailbox, a bus stop, etc. For example: each POI contains four aspects of information, name, category, coordinates, and classification. Comprehensive POI information is essential information for enriching navigation maps. Timely POI information points can remind users of detailed information about branches of road conditions and surrounding buildings, and can also facilitate navigation to find all the places you need, and choose the most convenient and unobstructed road for path planning. Therefore, the number of POI conditions in the navigation map directly affects the usability of navigation. POI (point of interest) is classified, with primary and secondary categories, and each category has a corresponding industry code and name. Convenient to record and distinguish information collection. In order to solve the problem of unreasonable travel itineraries, this paper designs relevant algorithm rules for detection. In order to solve the problem that the product title input is inconsistent with the actual itinerary, this paper uses the detected itinerary information to further detect the title information. In the actual scenario, the POIs entered in the itinerary description information are structured and unstructured. For the POIs entered in the itinerary description information, POI extraction needs to be done. In addition, all POIs in the title are structured, so there is no need to extract them separately. This paper constructs a trie tree using the POI dictionary in the tourism scenario, and then uses the trie tree to extract the POIs entered in the itinerary description text. In computer science, trie, also known as prefix tree or dictionary tree, is an ordered tree used to store associative arrays, in which the keys are usually strings. Unlike binary search trees, keys are not directly stored in nodes, but are determined by the position of nodes in the tree. All descendants of a node have the same prefix, that is, the string corresponding to this node, and the root node corresponds to an empty string. In general, not all nodes have corresponding values. Only the keys corresponding to leaf nodes and some internal nodes have relevant values. The keys in a trie are usually strings, but can be other structures as well. The trie algorithm can be easily modified to process ordered sequences of other structures, such as a string of numbers or a permutation of shapes.For example, the key in the bitwise trie is a string of bits, which can be used to represent an integer or a memory address. In the itinerary description of a tourism product, the POIs involved often have a common prefix, such as "Shanghai Disneyland", "Shanghai Zoo", and "Shanghai Animation Museum" all have the same prefix "Shanghai". Based on this feature, the trie tree can accurately match the text content and ultimately extract the POI information with better time and space consumption than algorithms such as the suffix tree and the binary search tree.
[0074] In step S110, a dictionary tree is constructed based on the points of interest included in the tourism product, including:
[0075] Step S111: Collect all structured POI information contained in the tourism products to form a POI dictionary.
[0076] Step S112: input the dictionary into the dictionary tree construction algorithm to generate a dictionary tree.
[0077] In step S120, the longitude and latitude of the points of interest and the hierarchical relationship between each point of interest and administrative regions at all levels are obtained, including:
[0078] Step S121: construct the hierarchical relationship between the point of interest and the city.
[0079] Step S122: construct the hierarchical relationship from city to province.
[0080] Step S123: Construct the hierarchical relationship from province to country.
[0081] Step S124, obtaining the longitude and latitude of each point of interest.
[0082] In step S120, the longitude and latitude of the points of interest and the hierarchical relationship between each point of interest and administrative regions at all levels are obtained, and the process also includes: step S120, filtering out offline travel products.
[0083] In step S130, nouns in the itinerary description text of the unstructured POI information contained in the travel product itinerary are extracted, and corresponding city POIs are obtained based on the dictionary tree and the hierarchical relationship, and added to the POI information, including:
[0084] Step S131: extract nouns from the itinerary description text of the unstructured points of interest information contained in the travel product itinerary.
[0085] Step S132: extract the city points of interest corresponding to the hotel points of interest corresponding to the nouns based on the dictionary tree and the hierarchical relationship, and add them to the unstructured points of interest information in the tourism product.
[0086] Step S133: Add the hierarchical relationship corresponding to the hotel's points of interest to the structured points of interest information in the tourism product.
[0087] In step S140, the rationality and correctness are judged based on at least the travel product itinerary and the distances between the various points of interest in the travel product title, and the travel products that do not meet the rationality and / or correctness are output to the wrong travel product itinerary set, including:
[0088] Step S141, obtaining a rationality judgment result of the tourism product itinerary based on the relationship between the distances between the points of interest passed in the tourism product itinerary in time sequence and a preset threshold.
[0089] Step S142: based on the relationship between the distance between any point of interest in the tourism product title and any point of interest in the tourism product itinerary and a preset threshold, obtain a result of determining whether the tourism product title is correct.
[0090] Step S143: outputting the tourism products that do not meet the rationality and / or correctness to the wrong tourism product itinerary set.
[0091] In step S141, based on the relationship between the distances between the points of interest passed in the travel product itinerary in time sequence and the preset threshold, a travel product itinerary rationality judgment result of the travel product itinerary is obtained, including:
[0092] Step S1411: When the distance between any point of interest in the travel product itinerary and another point of interest in the previous and subsequent itineraries is greater than a first threshold, the travel product itinerary is unreasonable.
[0093] Step S1412: When the distance between the hotel point of interest and the scenic spot point of interest in the travel product itinerary is greater than a second threshold, the travel product itinerary is unreasonable.
[0094] Step S1413: When a round trip between two points of interest appears in the same day of the travel product itinerary, and the distance between the two points of interest is greater than a third threshold, the travel product itinerary is unreasonable.
[0095] Step S1414: The itineraries of the remaining tourism products are reasonable.
[0096] In step S142, based on the relationship between the distance between any point of interest in the tourism product title and any point of interest in the tourism product itinerary and a preset threshold, a tourism product title correctness judgment result is obtained, including:
[0097] Step S1421: When any point of interest in the tourism product title and another point of interest in the tourism product itinerary are both greater than the fourth threshold, the tourism product title is incorrect.
[0098] Step S1422: When any point of interest in the tourism product title does not hit a point of interest in the tourism product itinerary and is not a parent point of interest of at least one point of interest in the tourism product itinerary, the tourism product title is incorrect.
[0099] Step S1423: The tourism product titles of the remaining tourism products are correct.
[0100] The distance calculation formula in steps S141 and S142 is:
[0101]
[0102] Where r is the radius of the earth and the latitude of a point of interest is The longitude is λ1, and the latitude of another point of interest is The longitude is λ2.
[0103] In the present invention, the POI information entered in the itinerary of a tourist product consists of two parts: structured POI information and POI information disclosed in an unstructured itinerary description text. Wherein, for the POI information disclosed in the itinerary description, it is necessary to extract the POI, use the method of part-of-speech analysis of jieba (a processing tool for Chinese text), extract the noun part from the itinerary description text, and use the trie tree constructed based on the POI dictionary library to accurately match the extracted noun part, thereby extracting the POI information in the itinerary description text. Based on the structured POI and the extracted POI, an algorithm rule is designed to judge the rationality of the itinerary, and the POI information entered in the itinerary is used to judge the correctness of the title entry. The labor cost caused by manual detection can be greatly reduced, and the browsing experience of users can be improved. The method is mainly used for the detection of wrong entry of tourist products.
[0104] In the present invention, the first step is to construct a dictionary tree, and the specific steps are as follows:
[0105] Collect all points of interest data included in the tourism product to form a points of interest dictionary;
[0106] Input the dictionary into the dictionary tree construction algorithm to generate a dictionary tree.
[0107] The second step is to process the data. The specific steps are as follows:
[0108] Filter out products that have been taken offline;
[0109] Build the hierarchical relationship between points of interest and cities;
[0110] Build hierarchical relationships from cities to provinces to countries;
[0111] Get the latitude and longitude of each point of interest.
[0112] The third step is text mining. The specific steps are as follows:
[0113] The itinerary description text of each product is input into the jieba algorithm to extract the noun part of the itinerary description text; the jieba word segmentation algorithm uses a prefix dictionary to achieve efficient word graph scanning, generates a directed acyclic graph (DAG) composed of all possible word generation situations of Chinese characters in the sentence, and then uses dynamic programming to find the maximum probability path and find the maximum segmentation combination based on word frequency. For unregistered words, the HMM model based on the word-forming ability of Chinese characters is used, and the Viterbi algorithm is used.
[0114] Match the constructed dictionary tree with the extracted nouns to extract hotel points of interest from all nouns;
[0115] Based on the hotel information in the product itinerary, the corresponding city points of interest are calculated and merged into the overall points of interest.
[0116] Merge the structured country / province / city / scenic area / attractions POIs in the description text into the overall POIs.
[0117] The fourth step is the algorithm rules, which input the points of interest of each product itinerary mined in the third step and the points of interest information of the known product titles into the algorithm rules, and finally output the products with incorrect titles and unreasonable itineraries. The specific steps are as follows:
[0118] Input the product's itinerary points of interest into the itinerary detection algorithm. If it is judged to be unreasonable, the product is judged to have an unreasonable itinerary. If it is judged to be reasonable, the product title is tested;
[0119] The points of interest information of the product itinerary and the points of interest information of the product title are input into the product title detection algorithm to determine whether the content of the title entry is consistent with the content of the itinerary description. If they are consistent, the product is output as correct. If they are inconsistent, the product is judged as having an incorrect title entry.
[0120] Figure 2 It is a framework diagram of product detection by the tourism product input information error checking method of the present invention. Figure 3 Schematic diagram of the dictionary tree in the tourism product input information error checking method of the present invention. Figure 2 , 3 As shown, the present invention implements a method for detecting product entry errors based on a trie tree. This paper uses a POI dictionary to construct a trie tree, and then uses the trie tree to mine POI information from the noun candidate set filtered by jieba, and finally uses the mined POI information to detect the itinerary and title of the product, which specifically includes the following steps:
[0121] (1) Constructing a trie tree: Traverse each POI in the dictionary and execute the prefix-based insertion algorithm in turn to insert each POI in the dictionary into the trie tree, thereby constructing a complete trie tree. The results of constructing a trie tree using the tourism POI dictionary are as follows: Figure 3 As shown (taking the dictionary consisting of three words 'Shanghai Disney', 'Shanghai Zoo' and 'Shanghai Animation Museum' as an example):
[0122] (2) Jieba part-of-speech tagging: extract words whose part of speech is noun from the complete product description text to form a candidate set.
[0123] (3) Trie tree query: Mining the noun candidate set generated by the Jieba algorithm and extracting the POI information contained therein.
[0124] (4) Product itinerary rationality detection: Combined with the characteristics of tourism scenarios, a product design judgment algorithm is designed for tourism scenarios.
[0125] If the distance between any POI in the product itinerary and the POIs before and after itineraries is greater than x1 (km), it is considered an error;
[0126] If the distance between the hotel POI and the scenic spot POI in the product itinerary is greater than x2 (km), it will be judged as an error;
[0127] In the same day's itinerary, multiple POIs are entered at the same time, but the situation of (A, B, A) appears, and the distance from A to B is greater than x3 (km), then it is judged wrong. Among them, x1, x2, x3 are all threshold parameters for distance judgment.
[0128] (5) Product title correctness detection: Based on the characteristics of tourism scenarios, algorithm rules are designed to determine whether there is any incorrect POI information entered in the main title.
[0129] If the distance between any POI in the title and any POI in the itinerary is greater than x4 (km), it is judged as an error.
[0130] If the POI in the main title does not appear in the POI in the itinerary description and is not the parent POI of the itinerary description POI, then it is judged as an error. Among them, x4 is the threshold parameter for distance judgment.
[0131] (6) The distance calculation in steps (4) and (5) uses the haversine formula to convert longitude and latitude into distance:
[0132]
[0133] Where r is the radius of the earth, and is the latitude (in arc units), λ1 and λ2 are the longitude (in arc units).
[0134] In the present invention, incorrect product title entry will cause the product content and product title to be inconsistent. Users view the specific description of the product based on the product title information, but the description and title are inconsistent, which will greatly affect the user experience. However, manual review for a large number of products will cause a lot of manpower consumption, and the efficiency is very low in the face of complex description texts. The method proposed in this article can achieve a detection accuracy of 95% for tourism products. It is a reliable method for detecting product title entry errors, which can effectively reduce the situation of product title entry errors.
[0135] Figure 4 Schematic diagram of the module of the tourism product input information error checking system of the present invention. Figure 4 As shown, an embodiment of the present invention further provides a tourism product input information error checking system, which is used to implement the above-mentioned tourism product input information error checking method. The tourism product input information error checking system includes:
[0136] The dictionary tree module 51 constructs a dictionary tree based on the structured POI information included in the travel product itinerary.
[0137] The superior-subordinate module 52 obtains the longitude and latitude of the interest point and the superior-subordinate relationship between each interest point and administrative regions at all levels.
[0138] The point of interest module 53 extracts nouns from the itinerary description text of the unstructured point of interest information contained in the travel product itinerary, obtains the corresponding city point of interest based on the dictionary tree and the upper and lower relationships, and adds them to the point of interest information.
[0139] The product error checking module 54 judges rationality and correctness based on at least the travel product itinerary and the distances between various points of interest in the travel product title, and outputs travel products that do not meet rationality and / or correctness to the wrong travel product itinerary set.
[0140] The purpose of the present invention is to provide a tourism product input information error checking system that can detect the itinerary and title of the product by automatically mining the point of interest information, effectively reduce the situation of product title input errors, improve user experience and reduce manpower consumption.
[0141] The embodiment of the present invention also provides a tourism product input information error checking device, comprising a processor and a memory, wherein executable instructions of the processor are stored, wherein the processor is configured to execute the steps of the tourism product input information error checking method by executing the executable instructions.
[0142] As shown above, the tourism product information entry error checking system of this embodiment of the present invention can detect the itinerary and title of the product by automatically mining the point of interest information, effectively reducing the situation of product title entry errors, improving user experience and reducing manpower consumption.
[0143] It will be appreciated by those skilled in the art that various aspects of the present invention may be implemented as systems, methods or program products. Therefore, various aspects of the present invention may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software implementations, which may be collectively referred to herein as "circuits", "modules" or "platforms".
[0144] Figure 5 This is a schematic diagram of the structure of the tourism product information entry error checking device of the present invention. Figure 5 The electronic device 600 according to this embodiment of the present invention is described. Figure 5 The electronic device 600 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0145] like Figure 5 As shown, the electronic device 600 is in the form of a general computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 connecting different platform components (including the storage unit 620 and the processing unit 610), a display unit 640, etc.
[0146] The storage unit stores program codes, which can be executed by the processing unit 610, so that the processing unit 610 executes the steps of various exemplary embodiments of the present invention described in the electronic prescription circulation processing method section of this specification. For example, the processing unit 610 can execute the following steps: Figure 1 Follow the steps shown in .
[0147] The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 6201 and / or a cache memory unit 6202 , and may further include a read-only memory unit (ROM) 6203 .
[0148] The storage unit 620 may also include a program / utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0149] Bus 630 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0150] The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 600, and / or communicate with any device that enables the electronic device 600 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 650. Furthermore, the electronic device 600 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 via a bus 630. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage platforms, etc.
[0151] The embodiment of the present invention also provides a computer-readable storage medium for storing a program, and the steps of the method for checking errors in entering information of tourism products are implemented when the program is executed. In some possible implementations, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps of various exemplary embodiments of the present invention described in the above-mentioned electronic prescription circulation processing method section of this specification.
[0152] As shown above, the tourism product information entry error checking system of this embodiment of the present invention can detect the itinerary and title of the product by automatically mining the point of interest information, effectively reducing the situation of product title entry errors, improving user experience and reducing manpower consumption.
[0153] Figure 6 Schematic diagram of the structure of the computer-readable storage medium of the present invention. Figure 6 As shown, a program product 800 for implementing the above method according to an embodiment of the present invention is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.
[0154] The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0155] Computer readable storage media may include data signals propagated in baseband or as part of a carrier wave, wherein readable program codes are carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device. The program code contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.
[0156] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0157] In summary, the purpose of the present invention is to provide a method, system, device and storage medium for checking errors in tourism product entry information, which can detect the itinerary and title of the product through automatically mined point of interest information, effectively reduce the situation of product title entry errors, improve user experience and reduce manpower consumption.
[0158] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.
Claims
1. A method for checking errors in tourism product input information, characterized in that: The following steps are involved: Construct a dictionary tree based on the structured POI information contained in the travel product itinerary; Obtain the latitude and longitude of the points of interest and the hierarchical relationship between each point of interest and administrative regions at all levels; Extracting nouns from the itinerary description text of the unstructured POI information contained in the travel product itinerary, obtaining corresponding city POIs based on the dictionary tree and the hierarchical relationship, and adding them to the POI information; as well as Based on the relationship between the distances between the points of interest passed in time sequence in the tourism product itinerary and a preset threshold, a rationality judgment result of the tourism product itinerary is obtained; when any point of interest in the tourism product title and another point of interest in the tourism product itinerary are both greater than a fourth threshold, the tourism product title is incorrect; when any point of interest in the tourism product title does not hit the point of interest in the tourism product itinerary and is not the parent point of interest of at least one of the points of interest in the tourism product itinerary, the tourism product title is incorrect; the tourism product titles of the remaining tourism products are correct; and tourism products that do not meet rationality and / or correctness are output to an erroneous tourism product itinerary set.
2. The method for checking errors in tourism product input information according to claim 1, characterized in that: The method of constructing a dictionary tree based on the points of interest included in the tourism product includes: Collect all structured POI information contained in tourism products to form a POI dictionary; Input the dictionary into the dictionary tree construction algorithm to generate a dictionary tree.
3. The method for checking errors in tourism product input information according to claim 1, characterized in that: The obtaining of the latitude and longitude of the points of interest and the hierarchical relationship between each point of interest and administrative regions at all levels includes: Build the hierarchical relationship between points of interest and cities; Build hierarchical relationships from cities to provinces; Build the hierarchical relationship from province to country; Get the latitude and longitude of each point of interest.
4. The method for checking errors in tourism product input information as claimed in claim 3, characterized in that: The method of obtaining the latitude and longitude of the points of interest and the hierarchical relationship between each point of interest and administrative regions at all levels also includes: filtering out offline travel products.
5. The method for checking errors in tourism product input information according to claim 1, characterized in that: The step of extracting nouns from the itinerary description text of the unstructured POI information contained in the travel product itinerary, obtaining corresponding city POIs based on the dictionary tree and the hierarchical relationship, and adding them to the POI information includes: Extracting nouns from the itinerary description text of the unstructured points of interest information contained in the travel product itinerary; Extracting the city points of interest corresponding to the hotel points of interest corresponding to the noun based on the dictionary tree and the hierarchical relationship, and adding them to the unstructured points of interest information in the tourism product; The hierarchical relationship corresponding to the hotel's points of interest is added to the structured points of interest information in the travel product.
6. The method for checking errors in tourism product input information according to claim 1, characterized in that: The step of obtaining the rationality judgment result of the tourism product itinerary based on the relationship between the intervals between the points of interest passed in the tourism product itinerary in time sequence and a preset threshold value comprises: When the distance between any point of interest in the itinerary of the tourism product and another point of interest in the previous and subsequent itineraries is greater than a first threshold, the itinerary of the tourism product is unreasonable; When the distance between the hotel point of interest and the scenic spot point of interest in the travel product itinerary is greater than a second threshold, the travel product itinerary is unreasonable; When the travel product itinerary includes a round trip between two points of interest on the same day, and the distance between the two points of interest is greater than a third threshold, the travel product itinerary is unreasonable; and The itineraries of the remaining tourism products are reasonable.
7. The method for checking errors in tourism product input information as claimed in claim 6, characterized in that: The distance is calculated as follows: Where r is the radius of the earth and the latitude of a point of interest is The longitude is λ1, and the latitude of another point of interest is The longitude is λ2.
8. A tourism product input information error checking system, used to implement the tourism product input information error checking method according to claim 1, characterized in that: include: The dictionary tree module builds a dictionary tree based on the structured points of interest information contained in the travel product itinerary; The superior-subordinate module obtains the longitude and latitude of the points of interest and the superior-subordinate relationship between each point of interest and administrative regions at all levels; The point of interest module extracts nouns from the itinerary description text of the unstructured point of interest information contained in the travel product itinerary, obtains corresponding city points of interest based on the dictionary tree and the upper-lower relationship, and adds them to the point of interest information; as well as The product error checking module obtains the rationality judgment result of the tourism product itinerary based on the relationship between the distance between the points of interest passed in the tourism product itinerary in time sequence and the preset threshold; when any point of interest in the tourism product title and another point of interest in the tourism product itinerary are both greater than the fourth threshold, the tourism product title is incorrect; when any point of interest in the tourism product title does not hit the point of interest in the tourism product itinerary and is not the parent point of interest of at least one of the points of interest in the tourism product itinerary, the tourism product title is incorrect; the tourism product titles of the remaining tourism products are correct; and tourism products that do not meet the rationality and / or correctness are output to the error tourism product itinerary set.
9. A tourism product input information error checking device, characterized in that: include: processor; a memory storing executable instructions of the processor; Wherein, the processor is configured to execute the steps of the tourism product input information error checking method according to any one of claims 1 to 7 by executing the executable instructions.
10. A computer-readable storage medium for storing a program, characterized in that: When the program is executed by a processor, the steps of the method for checking errors in entering tourism product information as described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Method and device for verifying position information of interest points
CN103886082A
Point of interest (POI) data redundancy detection method and device
CN104050196A
Address coding method and device, computer equipment and computer readable storage medium
CN112069276A