Combination method and device of tourism resource monomers, storage medium and computer equipment
By acquiring and processing tourism resource data and constructing a knowledge graph, the problem of low accuracy and efficiency in the single combination of tourism resources is solved, and a more efficient combination effect is achieved.
Patent Information
- Application Number
- CN202410668374.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-05-28
AI Technical Summary
In the existing technology, the combination of individual tourism resources relies on manual means, resulting in low combination accuracy and efficiency.
By obtaining resource description data in the target area, including travel notes data, geographical information data and tourist trajectory data, we can carry out tourism resource entity identification, classification processing, hierarchical processing, distance and correlation determination, build a tourism resource knowledge map, and then determine the combination plan .
It improves the accuracy and efficiency of the combination of individual tourism resources, reduces the subjective impact on humans, and achieves a more accurate and efficient resource combination.
Smart Images

Figure CN118569366A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of tourism resource processing, and in particular to a combination method, device, storage medium and computer equipment for tourism resource monomers. Background Art
[0002] With the rapid development of tourism, centralized management of tourism resources is required. Therefore, the combination of tourism resource entities becomes particularly important.
[0003] Currently, tourism resource units are usually combined manually. However, this combination method is greatly affected by human subjective factors, resulting in low combination accuracy of tourism resource units. At the same time, this manual method also leads to low combination efficiency of tourism resource units. Summary of the Invention
[0004] The present invention provides a method, device, storage medium and computer equipment for combining tourism resource monomers, which are mainly capable of improving the combination accuracy and efficiency of tourism resource monomers.
[0005] According to a first aspect of the present invention, a method for combining tourism resource monomers is provided, comprising:
[0006] Obtain resource description data within the target area, wherein the resource description data includes: travel data, geographic information data, and tourist trajectory data;
[0007] Performing tourism resource entity recognition on the resource description data to obtain each tourism resource entity contained in the resource description data;
[0008] Classifying each of the tourism resource monomers to obtain resource category information to which each of the tourism resource monomers belongs, and grading each of the tourism resource monomers to obtain monomer level information corresponding to each of the tourism resource monomers;
[0009] Based on the geographic information data, determining the monomer distance information between each of the tourism resource monomers, and determining the spatial selectivity information of each of the tourism resource monomers;
[0010] Based on the travel data, determining the correlation degree information between the tourism resource monomers, and performing clustering processing on the tourism resource monomers to obtain cluster category information to which the tourism resource monomers belong;
[0011] Based on the resource category information, monomer level information, monomer distance information, spatial selectivity information, association degree information and cluster category information, a tourism resource knowledge graph corresponding to each of the tourism resource monomers is constructed, wherein each of the tourism resource monomers serves as a node in the tourism resource knowledge graph, the monomer distance information serves as an edge in the tourism resource knowledge graph, the resource category information serves as a node label of the corresponding node in the tourism resource knowledge graph, and the monomer level information, spatial selectivity information, association degree information and cluster category information serve as attribute information of the corresponding node in the tourism resource knowledge graph;
[0012] Based on the tourism resource knowledge graph, a combination scheme of tourism resource monomers in the target area is determined.
[0013] According to a second aspect of the present invention, there is provided a combination device of tourism resource monomers, comprising:
[0014] An acquisition unit, configured to acquire resource description data within a target area, wherein the resource description data includes travel notes data, geographic information data, and tourist trajectory data;
[0015] An entity recognition unit, configured to perform tourism resource entity recognition on the resource description data to obtain each tourism resource entity contained in the resource description data;
[0016] a processing unit configured to classify each of the tourism resource units to obtain resource category information to which each of the tourism resource units belongs, and to grade each of the tourism resource units to obtain unit level information corresponding to each of the tourism resource units;
[0017] A first determining unit is configured to determine, based on the geographic information data, the monomer distance information between the tourism resource monomers and the spatial selectivity information of the tourism resource monomers;
[0018] a second determining unit, configured to determine, based on the travel diary data, information on the degree of association between the tourism resource monomers, and cluster the tourism resource monomers to obtain cluster category information to which the tourism resource monomers belong;
[0019] A construction unit is used to construct a tourism resource knowledge graph corresponding to each of the tourism resource monomers based on the resource category information, monomer level information, monomer distance information, spatial selectivity information, association degree information and cluster category information, wherein each of the tourism resource monomers serves as a node in the tourism resource knowledge graph, the monomer distance information serves as an edge in the tourism resource knowledge graph, the resource category information serves as a node label of the corresponding node in the tourism resource knowledge graph, and the monomer level information, spatial selectivity information, association degree information and cluster category information serve as attribute information of the corresponding node in the tourism resource knowledge graph;
[0020] The third determining unit is configured to determine a combination scheme of tourism resource monomers in the target area based on the tourism resource knowledge graph.
[0021] According to a third aspect of the present invention, there is provided a computer-readable storage medium having a computer program stored thereon, which implements the above-mentioned method for combining tourism resource monomers when executed by a processor.
[0022] According to a fourth aspect of the present invention, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method for combining tourism resource monomers when executing the program.
[0023] According to a method, device, storage medium and computer equipment for combining tourism resource monomers provided by the present invention, compared with the current method of combining tourism resource monomers by manual means, the present invention obtains resource description data in the target area, wherein the resource description data includes: travel notes data, geographic information data, and tourist trajectory data; and performs tourism resource entity recognition on the resource description data to obtain each tourism resource monomer contained in the resource description data; at the same time, each tourism resource monomer is classified to obtain resource category information to which each tourism resource monomer belongs, and each tourism resource monomer is graded to obtain monomer level information corresponding to each tourism resource monomer; and based on the geographic information data, the monomer distance information between each tourism resource monomer is determined, as well as the spatial selectivity information of each tourism resource monomer is determined; at the same time, based on the The method comprises the following steps: first, determining the association degree information between each of the tourism resource monomers based on the travel data, performing clustering processing on each of the tourism resource monomers, and obtaining the cluster category information to which each of the tourism resource monomers belongs; then, constructing a tourism resource knowledge graph corresponding to each of the tourism resource monomers based on the resource category information, monomer level information, monomer distance information, spatial selectivity information, association degree information and cluster category information, wherein each of the tourism resource monomers serves as a node in the tourism resource knowledge graph, the monomer distance information serves as an edge in the tourism resource knowledge graph, the resource category information serves as a node label of the corresponding node in the tourism resource knowledge graph, and the monomer level information, spatial selectivity information, association degree information and cluster category information serve as attribute information of the corresponding node in the tourism resource knowledge graph; and finally, determining a combination scheme of the tourism resource monomers in the target area based on the tourism resource knowledge graph. Therefore, by identifying each tourism resource monomer contained in the resource description data, and determining the resource category information, monomer level information, monomer distance information, spatial selectivity information, correlation degree information and clustering category information of each tourism resource monomer, a tourism resource knowledge graph is constructed based on the above-mentioned information, and finally the tourism resource monomers in the target area are combined according to the tourism resource knowledge graph, that is, by determining the various attribute information of the tourism resource monomer and constructing a knowledge graph based on the various attribute information, the monomers are combined through the knowledge graph containing various attribute information, which can improve the combination efficiency and combination accuracy of the tourism resource monomers. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0025] Figure 1A flow chart of a method for combining tourism resource monomers provided by an embodiment of the present invention is shown;
[0026] Figure 2 A flow chart of another method for combining tourism resource monomers provided by an embodiment of the present invention is shown;
[0027] Figure 3 A schematic structural diagram of a tourism resource unit assembly device provided by an embodiment of the present invention is shown;
[0028] Figure 4 A schematic structural diagram of another combination device of tourism resource units provided by an embodiment of the present invention is shown;
[0029] Figure 5 A schematic diagram of the physical structure of a computer device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0030] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that, unless there is a conflict, the embodiments and features in the embodiments of the present application can be combined with each other.
[0031] At present, the method of combining tourism resource monomers through manual means results in low combination accuracy of tourism resource monomers. At the same time, this manual method also results in low combination efficiency of tourism resource monomers.
[0032] In order to solve the above problems, the embodiment of the present invention provides a method for combining tourism resource monomers, such as Figure 1 As shown, the method includes:
[0033] 101. Obtain resource description data within the target area, wherein the resource description data includes: travel data, geographic information data, and tourist trajectory data.
[0034] In the embodiment of the present invention, travel data specifically refers to tourist comment data. Various travel websites are visited to identify the URL (uniform resource locator) pattern and web page structure of the tourist comment data. By writing a Python (a computer programming language) program, the tourist comment data of the target area is crawled and stored in the relational database Access, including user ID, comment content, timestamp field and other information. At the same time, the tourist trajectory data in the target area is obtained through the API, including information such as the latitude and longitude of the trajectory points and timestamp fields, and the Overpass API tool is used to download the latest road network and attractions in the target area, that is, geographic information data.
[0035] Furthermore, after obtaining the travel data, geographic information data, and tourist trajectory data of the target area, the above data needs to be pre-processed. For example, for tourist travel data, delete data with fewer than 5 Chinese characters, delete duplicate data, and delete irrelevant comments such as advertisements; for tourist trajectory data, delete data with a length of less than 1 km and data with a duration of less than 1 hour; for geographic information data, merge data with different names for the same location and supplement all possible names of scenic spots. Then, based on the pre-processed data, combine the tourism resource monomers in the target area, thereby avoiding the problems of low combination efficiency and low combination accuracy caused by human combination of tourism resource monomers based on subjective experience. Therefore, the embodiment of the present invention can improve the combination efficiency and combination accuracy of tourism resource monomers. The embodiment of the present invention is mainly applicable to the scenario of combining tourism resource monomers. The execution subject of the embodiment of the present invention is a device or equipment capable of combining tourism resource monomers, which can be specifically set on the server side.
[0036] 102. Perform tourism resource entity recognition on the resource description data to obtain each tourism resource entity contained in the resource description data.
[0037] Among them, tourism resource monomers refer to individual individuals of the basic type of tourism resources that can be used as independent viewing objects or utilization. Tourism resource monomers include independent tourism resource monomers and collective tourism resource monomers. Independent tourism resource monomers refer to tourism resource individuals that can exist independently, such as a historical relic, a natural landscape, etc. Collective tourism resource monomers refer to a collection formed by multiple independent units of the same type combined together, such as a group of cultural relics, a natural scenic area, etc. For the embodiment of the present invention, the tourist description data may contain different tourism resource monomers. Therefore, in order to extract the tourism resource monomers in the target area, it is necessary to perform entity recognition on the tourist description data in the target area, so as to identify the various tourism resource monomers contained in the target area. In order to ensure that each tourism resource monomer in the target area is identified, remote sensing image data in the target area may also be obtained, and the remote sensing image data may be analyzed and processed to obtain each tourism resource monomer in the target area from the remote sensing image data. Then, the category, level, monomer distance, spatial selectivity information, correlation degree information, etc. of each tourism resource monomer are determined, and a knowledge graph is constructed based on the above data. Finally, based on the knowledge graph, the tourism resource monomers in the target area are combined, thereby analyzing the various attribute information of the tourism resource monomers and constructing a knowledge graph based on the analysis results. Finally, the tourism resource monomers are combined according to the knowledge graph, which can improve the combination efficiency and combination accuracy of the tourism resource monomers.
[0038] 103. Classify each tourism resource unit to obtain the resource category information to which each tourism resource unit belongs, and grade each tourism resource unit to obtain the unit level information corresponding to each tourism resource unit.
[0039] The categories to which tourism resource units belong include: geographical landscapes, waterscapes, biological landscapes, astronomical and climatic landscapes, buildings and facilities, historical sites, tourist products, and cultural activities. In this embodiment of the present invention, each tourism resource unit is first classified based on its characteristic information to obtain the category information to which each tourism resource unit belongs. Then, based on information such as travel notes, each tourism resource unit is graded to obtain the unit level information corresponding to each tourism resource unit. The unit level information is influenced by the importance of the unit in the minds of tourists and the tourists' satisfaction with the unit. For example, the greater the importance of the unit in the minds of tourists and the higher the tourists' satisfaction with the unit, the higher the level corresponding to the unit.
[0040] 104. Based on geographic information data, determine the distance information between each tourism resource unit, and determine the spatial selectivity information of each tourism resource unit.
[0041] Spatial selectivity information refers to the number of times tourists pass by a specific entity while visiting a target area, which is called the spatial selectivity information of that entity. In the embodiments of the present invention, geographic information data records the location information of each tourism resource entity. Through this geographic information data, the distance between each tourism resource entity, i.e., entity distance information, can be obtained. At the same time, the spatial selectivity information of each tourism resource entity is determined by the number of times tourists pass by tourism resource entities while visiting the target area. Subsequently, a tourism resource knowledge graph is constructed based on the entity distance information and spatial selectivity information, which ensures the comprehensiveness of the knowledge graph. Subsequently, tourism resource entities are combined based on the knowledge graph to improve the accuracy of the combination of tourism resource entities.
[0042] 105. Based on the travel diary data, determine the correlation degree information between the tourism resource monomers, and perform clustering processing on the tourism resource monomers to obtain the cluster category information to which the tourism resource monomers belong.
[0043] The correlation degree information refers to the possibility that tourists will visit unit B after visiting unit A. In the embodiment of the present invention, the correlation degree information between various tourism resource units can be summarized through travel diary data. At the same time, each tourism resource unit is clustered to obtain the cluster categories between each tourism resource unit. Then, based on the resource category information, unit level information, unit distance information, spatial selectivity information, correlation degree information, and cluster category information of each tourism resource unit, a tourism resource knowledge graph corresponding to each tourism resource unit is constructed. Finally, based on the tourism resource knowledge graph, each tourism resource unit is combined. Therefore, by combining the various attribute information of each tourism resource unit clearly displayed in the knowledge graph, the tourism resource units can be combined, which can improve the combination efficiency and combination accuracy of the tourism resource units.
[0044] 106. Based on resource category information, monomer level information, monomer distance information, spatial selectivity information, correlation degree information and cluster category information, a tourism resource knowledge graph corresponding to each tourism resource monomer is constructed.
[0045] For the embodiment of the present invention, after obtaining the resource category information, monomer level information, monomer distance information, spatial selectivity information, correlation degree information and cluster category information of each tourism resource monomer, each tourism resource monomer is used as a node, the monomer distance information between each tourism resource monomer is used as an edge, the resource category information is used as the node label of the corresponding node, the monomer level information, spatial selectivity information, correlation degree information, cluster category information is used as the attribute information of the corresponding node, and a tourism resource knowledge graph corresponding to each tourism resource monomer is constructed. Finally, the tourism resource monomers are combined according to the resource knowledge graph containing various information, which can improve the combination efficiency and combination accuracy of the tourism resource monomers.
[0046] 107. Based on the tourism resource knowledge graph, determine the combination plan of tourism resource units in the target area.
[0047] For the embodiment of the present invention, a knowledge graph can be constructed specifically through Neo4j (a high-performance graph database). After the tourism resource knowledge graph is constructed, the tourism resource knowledge graph is stored in a search system. The user inputs demand information in the search system, and the search system performs semantic analysis on the user's demand information. Based on the analysis results, the attribute relationship of each monomer is checked in the tourism resource knowledge graph, and the tourism resource monomers are combined according to the information recorded in the knowledge graph. Therefore, by determining the various attribute information of each tourism resource monomer and constructing a knowledge graph based on various comprehensive attribute information, the monomers are finally combined according to the knowledge graph, which can improve the combination efficiency and combination accuracy of tourism resource monomers.
[0048] According to a method for combining tourism resource monomers provided by the present invention, compared with the current method of combining tourism resource monomers by manual means, the present invention obtains resource description data in a target area, wherein the resource description data includes: travel notes data, geographic information data, and tourist trajectory data; and performs tourism resource entity recognition on the resource description data to obtain each tourism resource monomer contained in the resource description data; at the same time, classifies each tourism resource monomer to obtain resource category information to which each tourism resource monomer belongs, and performs graded processing on each tourism resource monomer to obtain monomer level information corresponding to each tourism resource monomer; and based on the geographic information, the tourism resource monomer is classified and classified into the following categories: The method comprises the following steps: processing information data, determining the monomer distance information between each of the tourism resource monomers, and determining the spatial selectivity information of each of the tourism resource monomers; at the same time, based on the travel notes data, determining the correlation degree information between each of the tourism resource monomers, and clustering each of the tourism resource monomers to obtain the cluster category information to which each of the tourism resource monomers belongs; then, based on the resource category information, monomer level information, monomer distance information, spatial selectivity information, correlation degree information and cluster category information, constructing a tourism resource knowledge graph corresponding to each of the tourism resource monomers; finally, based on the tourism resource knowledge graph, determining the combination scheme of the tourism resource monomers in the target area. Therefore, by identifying each tourism resource monomer contained in the resource description data, and determining the resource category information, monomer level information, monomer distance information, spatial selectivity information, correlation degree information and clustering category information of each tourism resource monomer, a tourism resource knowledge graph is constructed based on the above-mentioned information, and finally the tourism resource monomers in the target area are combined according to the tourism resource knowledge graph, that is, by determining the various attribute information of the tourism resource monomer and constructing a knowledge graph based on the various attribute information, the monomers are combined through the knowledge graph containing various attribute information, which can improve the combination efficiency and combination accuracy of the tourism resource monomers.
[0049] Furthermore, in order to better illustrate the above process of combining tourism resource monomers, as a refinement and extension of the above embodiment, the embodiment of the present invention provides another method for combining tourism resource monomers, such as Figure 2 As shown, the method includes:
[0050] 201. Obtain resource description data within a target area, wherein the resource description data includes: travel data, geographic information data, and tourist trajectory data.
[0051] Specifically, crawler technology can be used to obtain various travel notes posted by tourists on travel websites, as well as geographic information data and tourist trajectory data within the target area. It should be noted that the above data is obtained with authorization and consent, and is not tourist privacy data.
[0052] 202. Perform word segmentation processing on the resource description data to obtain each word segment corresponding to the resource description data.
[0053] 203. Input each word segment into a preset entity recognition model for entity recognition to obtain each tourism resource entity included in the resource description data.
[0054] Specifically, the LUA algorithm in the TexSmart natural language processing tool can be used to perform named entity recognition on the resource description data. At the same time, a model including a first recursive neural network and a second recursive neural network can also be used to perform entity recognition on the resource description data. The specific recognition process is: performing word segmentation processing on the resource description data to obtain each word segmentation corresponding to the resource description data, inputting each word segmentation into the first recursive neural network according to its order in the resource description data for feature extraction, and obtaining a first feature vector corresponding to each word segmentation; inputting each word segmentation into the second recursive neural network in reverse order according to its order in the resource description data for feature extraction, and obtaining a second feature vector corresponding to each word segmentation; merging the first feature vector and the second feature vector to obtain a merged feature vector, and according to the merged feature vector, determining the entity corresponding to each word segmentation in the resource description data, that is, the tourism resource entity. The present invention adopts advanced natural language processing and geographic information system technology, and can automatically identify tourism resource entities from text and image data, reducing dependence on manual investigation and improving the speed and accuracy of tourism resource entity recognition. At the same time, the database used for storing resource description data of the present invention is updated in real time and can adapt to real-time changes in the market, thereby improving the combination accuracy of tourism resource monomers and the practicality of the combined ones.
[0055] 204. Classify each tourism resource unit to obtain the resource category information to which each tourism resource unit belongs, and grade each tourism resource unit to obtain the unit level information corresponding to each tourism resource unit.
[0056] For the embodiment of the present invention, after determining that the resource description data contains each tourism resource monomer, it is also necessary to classify each tourism resource monomer. Based on this, step 204 specifically includes: constructing multiple preset initial classification models, and obtaining sample tourism resource monomers and their corresponding actual category information; based on the number of models of the preset initial classification model, dividing the sample tourism resource monomers and their corresponding actual category information into multiple groups of training data and multiple groups of test data; using each group of training data to train the corresponding preset initial classification model to obtain the trained preset initial classification model, wherein the sample tourism resource monomer is used as input data during the training process, and the actual category information is used as the training data. To output data; use each group of test data to test the corresponding trained preset initial classification model to obtain the classification accuracy corresponding to each of the trained preset initial classification models; determine the maximum classification accuracy among each of the classification accuracies, and determine the preset initial classification model corresponding to the maximum classification accuracy as the preset classification model, wherein the preset classification model includes a preset random forest model; input each of the tourism resource monomers into each classification tree in the preset random forest model for classification, and obtain the classification results of each classification tree for the tourism resource monomer; based on the classification results corresponding to each classification tree, determine the resource category information to which each of the tourism resource monomers belongs.
[0057] Specifically, in the process of classification using a preset classification model, in order to improve the classification accuracy of the classification model, the classification model needs to be trained in advance. Based on this, the method includes: pre-constructing a preset initial classification model, the number of models can be multiple (wherein, the structures of multiple preset initial classification models can be the same or different), and then dividing the sample data (including sample tourism resource units and their corresponding actual category information) into training data and verification data. In the training data, the training data is divided into multiple groups of training sub-data according to the number of models, and the corresponding preset initial classification models are trained respectively using the training sub-data. During the training process, the sample tourism resource units are used as input data and the actual category information is used as output data, thereby obtaining each trained preset initial classification model. Then, according to the number of models of the trained preset initial classification model, the verification data is divided into multiple groups of verification sub-data, and the corresponding trained preset initial classification models are verified respectively using multiple groups of verification sub-data to obtain the classification accuracy corresponding to each trained preset initial classification model, and finally the model with the highest classification accuracy is selected as the preset classification model. At the same time, in the process of training the preset initial classification model using training data, the predicted classification information predicted by the preset initial classification model and the corresponding actual classification information can be used to construct a loss function corresponding to the model. Finally, the preset initial classification model can be iteratively trained based on the loss function to obtain a preset classification model with higher classification accuracy.
[0058] Furthermore, the preset classification model can specifically be a random forest classification model, then at least one model structure in the preset initial classification model should be a random forest model. Before the training, the number of decision trees (classification trees) in the preset initial classification model, the decision tree depth, and the number of features used to split nodes in the decision tree are set, such as the number of decision trees is 100, the maximum depth is 5, and the number of features is 8. After the training is completed, the tourism resource units are input into each classification tree in the preset random forest model for classification, and the classification results of each classification tree for the tourism resource unit are obtained. Then, based on the classification results corresponding to each classification tree, it is determined which classification result has the largest number of predictions, and finally the classification result with the largest number of predictions is determined as the resource category information to which the tourism resource unit belongs.
[0059] Furthermore, it is also necessary to determine the monomer level information corresponding to each tourism resource monomer. Based on this, step 204 specifically includes: determining the frequency of each tourism resource monomer appearing in the travel notes data, and using the frequency as the importance corresponding to each tourism resource monomer; performing semantic analysis on the travel notes data to which each tourism resource monomer belongs to obtain the tourists' satisfaction with each tourism resource monomer; determining the word frequency of each tourism resource monomer in each network, and based on the word frequency, determining the influence of each tourism resource monomer; determining the weight coefficients corresponding to the importance, satisfaction, and influence respectively; based on the weight coefficients, adding the importance, satisfaction, and influence corresponding to each tourism resource monomer to obtain the monomer level information corresponding to each tourism resource monomer; wherein, the method for determining the weight coefficients corresponding to the importance, satisfaction, and influence respectively includes: determining the importance standard deviation and importance average value corresponding to the importance of each tourism resource monomer, and based on the importance standard deviation and importance average value, performing standardization processing on the importance to obtain the standardized importance; determining the importance of each tourism resource monomer. The satisfaction standard deviation and the satisfaction average of the satisfaction levels corresponding to the tourism resource monomers are determined, and based on the satisfaction standard deviation and the satisfaction average, the satisfaction levels are standardized to obtain the standardized satisfaction levels; the influence standard deviation and the influence average of the influence levels corresponding to the tourism resource monomers are determined, and based on the influence standard deviation and the influence average, the influence levels are standardized to obtain the standardized influence levels; based on the standardized importance, standardized satisfaction and standardized influence levels corresponding to the tourism resource monomers, a resource classification decision matrix is constructed, wherein each tourism resource monomer constitutes a row in the resource classification decision matrix, and the standardized importance, standardized satisfaction and standardized influence levels constitute a column in the resource classification decision matrix; based on each element in the resource classification decision matrix, the entropy values corresponding to the importance, satisfaction and influence levels are determined respectively; based on the entropy values, the difference coefficients corresponding to the importance, satisfaction and influence levels are determined respectively; based on the difference coefficients, the weight coefficients corresponding to the importance, satisfaction and influence levels are determined respectively.
[0060] Specifically, the number of times each tourism resource monomer appears in the travel notes data is determined, and the number is determined as the importance of the corresponding tourism resource monomer. For example, if monomer A appears 60 times in the travel notes data, 60 is determined as the importance of monomer A. Then, semantic analysis is performed on the travel notes data to which the tourism resource monomer belongs. Specifically, the SnowNLP model can be used to perform sentiment analysis on the travel notes data, and the sentiment tendency of the comments containing the tourism resource monomer is judged. The judgment result is used as the tourists' satisfaction with the tourism resource monomer. The score ranges from 0 to 1 to reflect the image perception of the tourism resource monomer in the minds of tourists. At the same time, the influence of the tourism resource monomer in the network is measured by the popularity of the keyword search on the entire network. For example, the Baidu search engine is crawled to retrieve the web pages covering the tourism resource monomer, and the word frequency of the tourism resource monomer in each web page is determined. Then, the influence of the tourism resource monomer is calculated according to the following formula:
[0061] influence=log 10 frequency
[0062] Among them, influence is the influence degree of tourism resources, and frequency is the word frequency corresponding to each tourism resource unit. The above formula can be used to calculate the influence degree corresponding to each tourism resource unit.
[0063] Furthermore, after calculating the importance, satisfaction, and impact of each tourism resource, it is necessary to determine the weight coefficients corresponding to the importance index, satisfaction index, and impact index. In order to improve the calculation accuracy of the weight coefficients, it is first necessary to standardize the data under each indicator. Specifically, standardization can be performed according to the following formula:
[0064]
[0065] Among them, x i ′ represents the standardized data, i represents any one of the importance, satisfaction and influence, ui represents the data mean, for example, the importance mean, satisfaction mean, influence mean, σ iRepresents the standard deviation of the data, for example, the standard deviation of importance, the standard deviation of satisfaction, and the standard deviation of influence. Thus, the standardized importance, standardized satisfaction, and standardized influence can be obtained according to the above formula. Furthermore, the standardized data (standardized importance, standardized satisfaction, and standardized influence) are constructed into a resource classification decision matrix R. Each row in the resource classification decision matrix represents an evaluation object (tourism resource monomer), and each column represents an evaluation indicator (importance indicator, satisfaction indicator, and influence indicator). The standardized satisfaction, standardized importance, and standardized influence corresponding to each tourism resource are used as the elements in the resource classification decision matrix R. The entropy value of each indicator is then determined according to the following formula:
[0066]
[0067] Among them, e j represents the entropy value of the jth indicator, n is the number of evaluation objects (tourism resource monomers), p ij is the element in the i-th row and j-th column of the decision matrix. Based on the above formula, the entropy value of each evaluation indicator (satisfaction, importance, and influence) can be calculated. Furthermore, based on the entropy value of each evaluation indicator, the difference coefficient of each indicator is calculated according to the following formula:
[0068] g i =1-e j
[0069] Among them, g i The difference coefficient of the jth indicator is represented by the difference coefficient corresponding to any one of the data of importance, satisfaction and influence. Furthermore, according to the difference coefficient corresponding to each indicator, the weight coefficient corresponding to each indicator is determined according to the following formula:
[0070]
[0071] Among them, w j is the weight of the jth indicator, and m is the total number of indicators, which is 3.
[0072] Furthermore, after calculating the weight coefficients corresponding to the importance index, satisfaction index, and influence index, the importance, satisfaction, and influence are multiplied by their respective weight coefficients, and the multiplication results are added together. The added result is determined as the score of each tourism resource unit, and the unit level information corresponding to each tourism resource unit is determined based on the score. For example, the preset level configuration table is queried based on the addition result, where the preset level configuration table records the unit level corresponding to each score interval. For example, if the score corresponding to unit A is 89 points, by querying the preset level configuration table, it can be learned that the unit level corresponding to unit A is level B. Therefore, through big data analysis and sentiment analysis technology, the embodiment of the present invention can deeply explore tourists' behavior patterns and market trends, and conduct a more accurate and comprehensive assessment of the value of tourism resource units.
[0073] 205. Based on geographic information data, determine the distance information between each tourism resource unit, and determine the spatial selectivity information of each tourism resource unit.
[0074] Corresponding to the embodiment of the present invention, in order to combine tourism resource units, it is also necessary to obtain the unit distance information between each tourism resource unit. Specifically, the unit distance information between each tourism resource unit can be determined through the location information of each tourism resource unit displayed in the geographic information data.
[0075] Furthermore, in order to combine tourism resource units, it is also necessary to determine the spatial selectivity information of each tourism resource unit. Based on this, step 205 specifically includes: determining the various driving routes of tourists in the target area based on the tourist trajectory data; determining the target driving route that includes any tourism resource unit in each of the tourism resource units among the driving routes, and determining the number of the target driving routes as the spatial selectivity information of any tourism resource unit.
[0076] Specifically, for example, tourists form a total of 5000 driving routes in the target area, of which 2000 driving routes pass through resource monomer A, then 2000 is determined as the spatial selectivity information of resource monomer A.
[0077] 206. Based on the travel notes data, determine the correlation degree information between each tourism resource monomer, and perform clustering processing on each tourism resource monomer to obtain the cluster category information to which each tourism resource monomer belongs.
[0078] For the embodiment of the present invention, in order to combine tourism resource monomers, it is also necessary to determine the correlation degree information between each tourism resource monomer. Based on this, step 206 specifically includes: determining target travel record data containing at least two tourism resource monomers in each travel record data; determining a frequent item set for each tourism resource monomer appearing in the target travel record data, wherein each frequent item set contains a tourism resource monomer; determining the first frequency of the corresponding tourism resource monomer in each of the frequent item sets in each of the target travel record data, and determining the first frequency as a frequent support information of the frequent item set; determining a target frequent item set greater than a preset support threshold in the frequent support information corresponding to each frequent item set; determining two frequent item sets based on each of the target frequent item sets, wherein each of the two frequent item sets contains two tourism resource monomers; determining the second frequency of the corresponding two tourism resource monomers in each of the two frequent item sets appearing together in each of the target travel record data, and determining the second frequency as the two frequent item sets. the second frequent support information of each of the two frequent item sets; determining a target two frequent item set greater than a preset support threshold in the second frequent support information corresponding to each of the two frequent item sets, and determining a removed two frequent item set less than or equal to the preset support threshold in the second frequent support information corresponding to each of the two frequent item sets, wherein each removed two frequent item set includes a removed tourism resource monomer combination consisting of two tourism resource monomers; determining a three frequent item set based on each of the target two frequent item sets, wherein each three frequent item set includes three tourism resource monomers, and each three frequent item set does not include the removed tourism resource monomer combination; determining a third frequency at which the corresponding three tourism resource monomers in each of the three frequent item sets appear in each of the target travel diary data, and determining the third frequency as the three frequent support information of the three frequent item sets; determining the correlation degree information between each of the tourism resource monomers based on the one frequent item set and its corresponding one frequent support information, the two frequent item sets and their corresponding two frequent support information, and the three frequent item sets and their corresponding three frequent support information.
[0079] Among them, the preset support threshold is set according to actual needs. Specifically, the target travel notes data containing two or more tourism resource monomers are determined in each travel notes data, and then a frequent item set is determined for each tourism resource monomer appearing in the target travel notes data. For example, if each tourism resource monomer appearing in the target travel notes data includes A, B, C, D, E, and F, the target travel notes 1 contains four monomers ABCD, the target travel notes 2 contains four monomers ABCE, the target travel notes 3 contains four monomers BDEF, the target travel notes 4 contains four monomers BCDE, the target travel notes 5 contains four monomers ACDF, and the target travel notes 6 contains three monomers ABC. 7 contains three monomers ABE, then a frequent item set is [A], [B], [C], [D], [E], [F]. The frequency of monomer A in the 7 target travel notes is 5 / 7 (i.e., a frequent support information), the frequency of monomer B in the 7 target travel notes is 6 / 7, the frequency of monomer C in the 7 target travel notes is 5 / 7, the frequency of monomer D in the 7 target travel notes is 4 / 7, the frequency of monomer E in the 7 target travel notes is 3 / 7, and the frequency of monomer F in the 7 target travel notes is 2 / 7. If the preset support threshold is 2.1 / 7, then a frequent item set less than the preset support threshold is The set is [F], and the target frequent item set greater than the preset support threshold is [A], [B], [C], [D], [E], then according to the target frequent item set, the second frequent item set is constructed as [AB], [AC], [AD], [AE], [BC], [BD], [BE], [CD], [CE], [DE]. The second frequency of monomer AB appearing in each target travel record data at the same time is 4 / 7 (i.e., the second frequent support information), the second frequency of monomer AC appearing in each target travel record data at the same time is 4 / 7, the second frequency of monomer AD appearing in each target travel record data at the same time is 2 / 7, and the second frequency of monomer AB appearing in each target travel record data at the same time is 4 / 7. The second frequency of AE appearing simultaneously in all target travel records is 2 / 7, the second frequency of BC appearing simultaneously in all target travel records is 4 / 7, the second frequency of BD appearing simultaneously in all target travel records is 3 / 7, the second frequency of BE appearing simultaneously in all target travel records is 3 / 7, the second frequency of CD appearing simultaneously in all target travel records is 3 / 7, the second frequency of CE appearing simultaneously in all target travel records is 2 / 7, and the second frequency of DE appearing simultaneously in all target travel records is 1 / 7. Therefore, it can be seen that the second frequency is less than the preset support threshold of 2.1 / 7 of the two frequent item sets that are eliminated are [AD], [AE], [CE], and [DE]. Then, a three frequent item set is constructed from the target two frequent item sets that are greater than the preset support threshold. Among them, the three frequent item sets do not include the two frequent item sets that are eliminated. The three frequent item sets obtained are: [ABC] and [BCD]. The frequency of each tourism resource monomer in the three frequent item set [ABC] appearing in the target tourist data together is calculated, that is, the three frequent support information is 3 / 7. The frequency of each tourism resource monomer in the three frequent item set [BCD] appearing in the target tourist data together, that is, the three frequent support information is 2 / 7. The three frequent item set that is greater than the preset support threshold is selected as [ABC]. In the example, the true subsets of [ABC] are [A], [B], [C], [AC], [AB], and [BC]. When monomer A appears, the probability that monomer BC also appears is the support information of [ABC] divided by the support information of [A], which is 3 / 5. That is, the correlation information between monomer A and monomer BC is 3 / 5. Similarly, the correlation information between monomer BC and monomer A is 3 / 4, the correlation information between monomer B and monomer AC is 1 / 2, the correlation information between monomer AC and monomer B is 3 / 4, the correlation information between monomer C and monomer AB is 3 / 5, and the correlation information between monomer AB and monomer C is 3 / 4.
[0080] Furthermore, it is necessary to perform clustering processing on each tourism resource monomer. Based on this, step 206 specifically includes: determining any tourism resource monomer among the tourism resource monomers, and counting the data density in the field corresponding to the any tourism resource monomer; if the data density is greater than the preset density threshold, then determining the any tourism resource monomer as the cluster center; based on the cluster center, clustering the tourism resource monomers to obtain the cluster category information to which each tourism resource monomer belongs, wherein the tourism resource monomer that does not belong to any cluster category information is determined as an abnormal monomer.
[0081] The preset density threshold is set based on actual needs. Specifically, several definitions are first established: a core point (cluster center): a point within a radius r containing more than the MinPts number of tourism resource entities; data density: the number of tourism resource entities within the radius r; a boundary point (boundary tourism resource entity): a point within the radius r where the number of tourism resource entities is less than the MinPts but falls within the neighborhood of the core point; and a noise point (anomaly tourism resource entity): a point that is neither a core point nor a boundary point. The specific clustering method is as follows: for each tourism resource entity, the set of data within its neighborhood (within a radius r) is calculated. When the number of data within the set exceeds the preset density threshold, the tourism resource entity is identified as the core point (cluster center). The remaining points are then checked to see if they are within the neighborhood of the core point. Any remaining points within the core point's neighborhood are grouped together with the cluster center, while any remaining points outside the core point's neighborhood are identified as anomalies. This method allows each tourism resource entity to be clustered and the cluster category information to be obtained.
[0082] 207. Based on resource category information, monomer level information, monomer distance information, spatial selectivity information, correlation degree information and cluster category information, a tourism resource knowledge graph corresponding to each tourism resource monomer is constructed.
[0083] Specifically, after obtaining the resource category information, monomer level information, monomer distance information, spatial selectivity information, correlation degree information and cluster category information of each tourism resource monomer, each tourism resource monomer is taken as a node, the monomer distance information between each tourism resource monomer is taken as an edge, the resource category information is taken as the node label of the corresponding node, and the monomer level information, spatial selectivity information, correlation degree information, cluster category information is taken as the attribute information of the corresponding node to construct a tourism resource knowledge graph corresponding to each tourism resource monomer.
[0084] 208. Based on the tourism resource knowledge graph, determine the combination plan of tourism resource units in the target area.
[0085] Through the above method, a knowledge graph of tourism resources in different regions can be constructed and stored in the search system. When a user wants to combine tourism resource entities in a certain area, the user enters the demand information in the search system. In order to deal with the uncertainty and ambiguity in the user input, the embodiment of the present invention can adopt a fuzzy matching algorithm, which can identify and parse approximate query conditions and convert the user's demand information into precise parameters that can be used to search and filter the tourism resource database. The fuzzy matching module includes a semantic analyzer, which uses a predefined tourism resource ontology library and association rules to understand the user's intention and associate it with the corresponding entities and attributes in the knowledge graph, thereby realizing the combination processing of tourism resource entities. At the same time, the user can require the system to output the calculated classification, evaluation, clustering, selectivity, and association rules separately, or query the attribute relationship of tourism resource entities through the knowledge graph constructed by Neo4j, and directly use it to combine regional resources. Alternatively, the system's built-in multi-objective optimization algorithm can be used to input constraints (for example, a set of highly rated tourism resource units, a rich variety, strong spatial clustering, high concentration and dispersion, and strong association rules correspond to a set of units with high scores, a rich variety of units, few cluster labels, and high association confidence) to obtain multiple solutions with different trade-offs. The solution set of tourism resource unit combinations that balance the constraints is then displayed on a real map, with the relationships and attributes represented as lines and graphs. This approach of combining tourism resource units through a comprehensive knowledge graph can improve the efficiency and accuracy of tourism resource unit combination.
[0086] According to another method for combining tourism resource monomers provided by the present invention, compared with the current way of combining tourism resource monomers by manual means, the present invention obtains resource description data in the target area, wherein the resource description data includes: travel data, geographic information data, and tourist trajectory data; and performs word segmentation processing on the resource description data to obtain each word segmentation corresponding to the resource description data; and inputs each word segmentation into a preset entity recognition model for entity recognition to obtain each tourism resource monomer contained in the resource description data; at the same time, classifies each tourism resource monomer to obtain resource category information to which each tourism resource monomer belongs, and performs graded processing on each tourism resource monomer to obtain each tourism resource monomer. The monomer level information corresponding to the tourism resource monomer is determined; and based on the geographic information data, the monomer distance information between each of the tourism resource monomers is determined, as well as the spatial selectivity information of each of the tourism resource monomers is determined; at the same time, based on the travel notes data, the correlation degree information between each of the tourism resource monomers is determined, and each of the tourism resource monomers is clustered to obtain the cluster category information to which each of the tourism resource monomers belongs; then, based on the resource category information, monomer level information, monomer distance information, spatial selectivity information, correlation degree information and cluster category information, a tourism resource knowledge graph corresponding to each of the tourism resource monomers is constructed; finally, based on the tourism resource knowledge graph, a combination scheme of tourism resource monomers in the target area is determined. Therefore, by identifying each tourism resource monomer contained in the resource description data, and determining the resource category information, monomer level information, monomer distance information, spatial selectivity information, correlation degree information and clustering category information of each tourism resource monomer, a tourism resource knowledge graph is constructed based on the above-mentioned information, and finally the tourism resource monomers in the target area are combined according to the tourism resource knowledge graph, that is, by determining the various attribute information of the tourism resource monomer and constructing a knowledge graph based on the various attribute information, the monomers are combined through the knowledge graph containing various attribute information, which can improve the combination efficiency and combination accuracy of the tourism resource monomers.
[0087] Further, as Figure 1 The specific implementation of the present invention provides a combination device of tourism resource monomers, such as Figure 3 As shown, the apparatus includes: an acquisition unit 31 , an entity recognition unit 32 , a processing unit 33 , a first determination unit 34 , a second determination unit 35 , a construction unit 36 and a third determination unit 37 .
[0088] The acquisition unit 31 may be used to acquire resource description data within a target area, wherein the resource description data includes travel data, geographic information data, and tourist trajectory data.
[0089] The entity recognition unit 32 may be used to perform tourism resource entity recognition on the resource description data to obtain each tourism resource entity contained in the resource description data.
[0090] The processing unit 33 can be used to classify each tourism resource monomer to obtain resource category information of each tourism resource monomer, and to grade each tourism resource monomer to obtain monomer level information corresponding to each tourism resource monomer.
[0091] The first determining unit 34 may be configured to determine the distance information between the tourism resource units and the spatial selectivity information of the tourism resource units based on the geographic information data.
[0092] The second determining unit 35 may be configured to determine the association degree information between the tourism resource monomers based on the travel diary data, and perform clustering processing on the tourism resource monomers to obtain cluster category information to which the tourism resource monomers belong.
[0093] The construction unit 36 can be used to construct a tourism resource knowledge graph corresponding to each of the tourism resource monomers based on the resource category information, monomer level information, monomer distance information, spatial selectivity information, association degree information and cluster category information, wherein each of the tourism resource monomers serves as a node in the tourism resource knowledge graph, the monomer distance information serves as an edge in the tourism resource knowledge graph, the resource category information serves as a node label of the corresponding node in the tourism resource knowledge graph, and the monomer level information, spatial selectivity information, association degree information and cluster category information serve as attribute information of the corresponding node in the tourism resource knowledge graph.
[0094] The third determining unit 37 may be configured to determine a combination scheme of tourism resource units in the target area based on the tourism resource knowledge graph.
[0095] In specific application scenarios, such as Figure 4 As shown, in order to determine each tourism resource entity included in the resource description data, the entity recognition unit 32 includes a word segmentation processing module 321 and an entity recognition module 322.
[0096] The word segmentation processing module 321 can be used to perform word segmentation processing on the resource description data to obtain each word segment corresponding to the resource description data.
[0097] The entity recognition module 322 can be used to input the individual word segments into a preset entity recognition model for entity recognition, thereby obtaining the tourism resource entities contained in the resource description data.
[0098] In a specific application scenario, in order to determine the resource category information to which a tourism resource unit belongs, the processing unit 33 includes a construction module 331 , a division module 332 , a training module 333 , a testing module 334 , a first determination module 335 , and a classification module 336 .
[0099] The construction module 331 can be used to construct multiple preset initial classification models and obtain sample tourism resource monomers and their corresponding actual category information.
[0100] The division module 332 may be used to divide the sample tourism resource units and their corresponding actual category information into multiple groups of training data and multiple groups of test data based on the number of models of the preset initial classification model.
[0101] The training module 333 can be used to train the corresponding preset initial classification model using each set of training data to obtain a trained preset initial classification model, wherein the sample tourism resource monomer is used as input data and the actual category information is used as output data during the training process.
[0102] The testing module 334 may be used to test the corresponding trained preset initial classification model using each set of test data to obtain the classification accuracy corresponding to each trained preset initial classification model.
[0103] The first determination module 335 can be used to determine the maximum classification accuracy among the classification accuracies, and determine the preset initial classification model corresponding to the maximum classification accuracy as the preset classification model, wherein the preset classification model includes a preset random forest model.
[0104] The classification module 336 can be used to input each of the tourism resource units into each classification tree in the preset random forest model for classification, and obtain the classification results of each classification tree for the tourism resource unit.
[0105] The first determining module 335 may be configured to determine the resource category information to which each tourism resource unit belongs based on the classification results corresponding to each classification tree.
[0106] In a specific application scenario, in order to perform hierarchical processing on each tourism resource entity, the processing unit 33 further includes a semantic analysis module 337 and an addition module 338 .
[0107] The first determining module 335 may also be used to determine the frequency of occurrence of each tourism resource unit in the travel diary data, and use the frequency as the importance corresponding to each tourism resource unit.
[0108] The semantic analysis module 337 can also be used to perform semantic analysis on the travel notes data belonging to each tourism resource unit to obtain the tourists' satisfaction with each tourism resource unit.
[0109] The first determination module 335 may also be used to determine the word frequency of each tourism resource unit in each network, and determine the influence degree of each tourism resource unit based on the word frequency.
[0110] The first determination module 335 may also be used to determine weight coefficients corresponding to the importance, satisfaction, and influence, respectively.
[0111] The adding module 338 may be configured to add the importance, satisfaction, and influence corresponding to each tourism resource unit based on the weight coefficient to obtain unit level information corresponding to each tourism resource unit.
[0112] Among them, in order to determine the weight coefficient, the first determination module 335 can be specifically used to determine the importance standard deviation and the importance average value corresponding to each of the tourism resource monomers, and based on the importance standard deviation and the importance average value, standardize the importance to obtain the standardized importance; determine the satisfaction standard deviation and the satisfaction average value corresponding to the satisfaction of each of the tourism resource monomers, and based on the satisfaction standard deviation and the satisfaction average value, standardize the satisfaction to obtain the standardized satisfaction; determine the influence standard deviation and the influence average value corresponding to the influence of each of the tourism resource monomers, and based on the influence standard deviation and the influence average value, standardize the influence. The degree of importance is standardized to obtain the standardized degree of influence; based on the standardized degree of importance, standardized degree of satisfaction and standardized degree of influence corresponding to each tourism resource monomer, a resource classification decision matrix is constructed, wherein each tourism resource monomer constitutes a row in the resource classification decision matrix, and the standardized degree of importance, standardized degree of satisfaction and standardized degree of influence constitute the column in the resource classification decision matrix; based on each element in the resource classification decision matrix, the entropy value corresponding to the degree of importance, degree of satisfaction and degree of influence is determined respectively; based on the entropy value, the difference coefficient corresponding to the degree of importance, degree of satisfaction and degree of influence is determined respectively; based on the difference coefficient, the weight coefficient corresponding to the degree of importance, degree of satisfaction and degree of influence is determined respectively.
[0113] In a specific application scenario, in order to determine the spatial selectivity information of each tourism resource unit, the first determination unit 34 can be specifically used to determine the various driving routes of tourists in the target area based on the tourist trajectory data; determine the target driving route that includes any tourism resource unit in each of the tourism resource units among the driving routes, and determine the number of the target driving routes as the spatial selectivity information of any tourism resource unit.
[0114] In a specific application scenario, in order to determine the correlation degree information between each tourism resource monomer, the second determination unit 35 can be specifically used to determine target travel record data containing at least two tourism resource monomers in each travel record data; determine a frequent item set for each tourism resource monomer appearing in the target travel record data, wherein each frequent item set contains a tourism resource monomer; determine the first frequency of the corresponding tourism resource monomer in each of the frequent item sets in each of the target travel record data, and determine the first frequency as a frequent support information of the frequent item set; determine a target frequent item set greater than a preset support threshold in the frequent support information corresponding to each frequent item set; based on each of the target frequent item sets, determine two frequent item sets, wherein each of the two frequent item sets contains two tourism resource monomers; determine the second frequency of the corresponding two tourism resource monomers in each of the two frequent item sets appearing together in each of the target travel record data, and determine the second frequency as the two frequent support information of the two frequent item sets. degree information; determining target two frequent itemsets greater than a preset support threshold in the two frequent support information corresponding to each of the two frequent itemsets, and determining eliminated two frequent itemsets less than or equal to the preset support threshold in the two frequent support information corresponding to each of the two frequent itemsets, wherein each eliminated two frequent itemset includes an eliminated tourism resource monomer combination consisting of two tourism resource monomers; determining three frequent itemsets based on each of the target two frequent itemsets, wherein each three frequent itemset includes three tourism resource monomers, and each three frequent itemset does not include the eliminated tourism resource monomer combination; determining a third frequency at which the corresponding three tourism resource monomers in each of the three frequent itemsets appear in each of the target travel diary data, and determining the third frequency as the three frequent support information of the three frequent itemsets; determining the correlation degree information between each of the tourism resource monomers based on the one frequent itemset and its corresponding one frequent support information, the two frequent itemsets and their corresponding two frequent support information, and the three frequent itemsets and their corresponding three frequent support information.
[0115] In a specific application scenario, in order to perform clustering processing on each tourism resource monomer, the second determination unit 35 includes a second determination module 351 and a clustering module 352 .
[0116] The second determining module 351 may be used to determine any tourism resource unit among the tourism resource units, and to count the data density in the field corresponding to the any tourism resource unit.
[0117] The second determining module 351 may also be configured to determine any tourism resource entity as a cluster center if the data density is greater than a preset density threshold.
[0118] The clustering module 352 can be used to cluster the tourism resource monomers based on the cluster centers to obtain cluster category information to which the tourism resource monomers belong, wherein tourism resource monomers that do not belong to any cluster category information are determined as abnormal monomers.
[0119] It should be noted that for other corresponding descriptions of the functional modules involved in the combined device of a tourism resource monomer provided by the embodiment of the present invention, reference can be made to Figure 1 The corresponding description of the method shown will not be repeated here.
[0120] Based on the above Figure 1 The method shown, accordingly, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the following steps are implemented: obtaining resource description data in a target area, wherein the resource description data includes: travel notes data, geographic information data, and tourist trajectory data; performing tourism resource entity recognition on the resource description data to obtain each tourism resource monomer contained in the resource description data; classifying each tourism resource monomer to obtain resource category information to which each tourism resource monomer belongs, and performing hierarchical processing on each tourism resource monomer to obtain monomer level information corresponding to each tourism resource monomer; determining monomer distance information between each tourism resource monomer based on the geographic information data, and determining spatial selectivity information of each tourism resource monomer; determining based on the travel notes data The association degree information between each of the tourism resource monomers is obtained, and each of the tourism resource monomers is clustered to obtain the cluster category information to which each of the tourism resource monomers belongs; based on the resource category information, monomer level information, monomer distance information, spatial selectivity information, association degree information and cluster category information, a tourism resource knowledge graph corresponding to each of the tourism resource monomers is constructed, wherein each of the tourism resource monomers is used as a node in the tourism resource knowledge graph, the monomer distance information is used as an edge in the tourism resource knowledge graph, the resource category information is used as a node label of the corresponding node in the tourism resource knowledge graph, and the monomer level information, spatial selectivity information, association degree information and cluster category information are used as attribute information of the corresponding node in the tourism resource knowledge graph; based on the tourism resource knowledge graph, a combination scheme of the tourism resource monomers in the target area is determined.
[0121] Based on the above Figure 1 The method shown and Figure 3 The embodiment of the device shown in the figure, the embodiment of the present invention also provides a physical structure diagram of a computer device, such as Figure 5 As shown, the computer device includes: a processor 41, a memory 42, and a computer program stored in the memory 42 and executable on the processor, wherein the memory 42 and the processor 41 are both arranged on a bus 43; when the processor 41 executes the program, the following steps are implemented: obtaining resource description data within the target area, wherein the resource description data includes: travel notes data, geographic information data, and tourist trajectory data; performing tourism resource entity recognition on the resource description data to obtain each tourism resource monomer contained in the resource description data; performing classification processing on each tourism resource monomer to obtain resource category information to which each tourism resource monomer belongs, and performing grading processing on each tourism resource monomer to obtain monomer level information corresponding to each tourism resource monomer; determining monomer distance information between each tourism resource monomer based on the geographic information data, and determining the spatial location of each tourism resource monomer. Selectivity information; based on the travel data, determine the correlation degree information between each of the tourism resource monomers, and cluster each of the tourism resource monomers to obtain the cluster category information to which each of the tourism resource monomers belongs; based on the resource category information, monomer level information, monomer distance information, spatial selectivity information, correlation degree information and cluster category information, construct a tourism resource knowledge graph corresponding to each of the tourism resource monomers, wherein each of the tourism resource monomers serves as a node in the tourism resource knowledge graph, the monomer distance information serves as an edge in the tourism resource knowledge graph, the resource category information serves as a node label of the corresponding node in the tourism resource knowledge graph, and the monomer level information, spatial selectivity information, correlation degree information and cluster category information serve as attribute information of the corresponding node in the tourism resource knowledge graph; based on the tourism resource knowledge graph, determine a combination scheme of tourism resource monomers in the target area.
[0122] Through the technical solution of the present invention, the present invention obtains resource description data in the target area, wherein the resource description data includes: travel data, geographic information data, and tourist trajectory data; and performs tourism resource entity recognition on the resource description data to obtain each tourism resource monomer contained in the resource description data; at the same time, each tourism resource monomer is classified to obtain resource category information to which each tourism resource monomer belongs, and each tourism resource monomer is graded to obtain monomer level information corresponding to each tourism resource monomer; and based on the geographic information data, determines the monomer distance information between each tourism resource monomer, and determines the spatial selectivity information of each tourism resource monomer; at the same time, based on the travel data, determines the correlation degree information between each tourism resource monomer. , and cluster each of the tourism resource monomers to obtain the cluster category information to which each of the tourism resource monomers belongs; then, based on the resource category information, monomer level information, monomer distance information, spatial selectivity information, association degree information and cluster category information, a tourism resource knowledge graph corresponding to each of the tourism resource monomers is constructed, wherein each of the tourism resource monomers is used as a node in the tourism resource knowledge graph, the monomer distance information is used as an edge in the tourism resource knowledge graph, the resource category information is used as a node label of the corresponding node in the tourism resource knowledge graph, and the monomer level information, spatial selectivity information, association degree information and cluster category information are used as attribute information of the corresponding node in the tourism resource knowledge graph; finally, based on the tourism resource knowledge graph, a combination scheme of the tourism resource monomers in the target area is determined. Therefore, by identifying each tourism resource monomer contained in the resource description data, and determining the resource category information, monomer level information, monomer distance information, spatial selectivity information, correlation degree information and clustering category information of each tourism resource monomer, a tourism resource knowledge graph is constructed based on the above-mentioned information, and finally the tourism resource monomers in the target area are combined according to the tourism resource knowledge graph, that is, by determining the various attribute information of the tourism resource monomer and constructing a knowledge graph based on the various attribute information, the monomers are combined through the knowledge graph containing various attribute information, which can improve the combination efficiency and combination accuracy of the tourism resource monomers.
[0123] Obviously, those skilled in the art will appreciate that the various modules or steps of the present invention described above can be implemented using a general-purpose computing device, centralized on a single computing device, or distributed across a network of multiple computing devices. Alternatively, they can be implemented using program code executable by a computing device, which can then be stored in a storage device and executed by the computing device. In some cases, the steps shown or described can be performed in a different order than that shown, or can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0124] The foregoing description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Those skilled in the art will readily appreciate that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention shall be included within the scope of protection of the present invention.
Claims
1. A method for combining tourism resource monomers, characterized in that: include: Obtain resource description data in the target area, wherein the resource description data includes: travel notes data, geographic information data, and tourist trajectory data; Performing tourism resource entity recognition on the resource description data to obtain each tourism resource entity contained in the resource description data; Classify each of the tourism resource monomers to obtain resource category information to which each of the tourism resource monomers belongs, and grade each of the tourism resource monomers to obtain monomer level information corresponding to each of the tourism resource monomers; Based on the geographic information data, determining the monomer distance information between each of the tourism resource monomers, and determining the spatial selectivity information of each of the tourism resource monomers; Based on the travel notes data, determining the correlation degree information between the tourism resource monomers, and performing clustering processing on the tourism resource monomers to obtain the cluster category information to which the tourism resource monomers belong; Based on the resource category information, monomer level information, monomer distance information, spatial selectivity information, association degree information and cluster category information, a tourism resource knowledge graph corresponding to each of the tourism resource monomers is constructed, wherein each of the tourism resource monomers is used as a node in the tourism resource knowledge graph, the monomer distance information is used as an edge in the tourism resource knowledge graph, the resource category information is used as a node label of the corresponding node in the tourism resource knowledge graph, and the monomer level information, spatial selectivity information, association degree information and cluster category information are used as attribute information of the corresponding node in the tourism resource knowledge graph; Based on the tourism resource knowledge graph, a combination scheme of tourism resource monomers in the target area is determined.
2. The method according to claim 1, characterized in that The performing tourism resource entity identification on the resource description data to obtain each tourism resource entity contained in the resource description data includes: Performing word segmentation processing on the resource description data to obtain each word segmentation corresponding to the resource description data; The individual word segments are input into a preset entity recognition model for entity recognition, so as to obtain the individual tourism resource entities contained in the resource description data.
3. The method according to claim 1, characterized in that The classification process of each tourism resource monomer to obtain resource category information to which each tourism resource monomer belongs includes: Construct multiple preset initial classification models and obtain sample tourism resource monomers and their corresponding actual category information; Based on the model quantity of the preset initial classification model, the sample tourism resource monomers and their corresponding actual category information are divided into multiple groups of training data and multiple groups of test data; Using each group of training data to train the corresponding preset initial classification model, a trained preset initial classification model is obtained, wherein during the training process, the sample tourism resource monomer is used as input data, and the actual category information is used as output data; Using each group of test data to test the corresponding trained preset initial classification model, to obtain the classification accuracy corresponding to each trained preset initial classification model; Determining a maximum classification accuracy among the classification accuracies, and determining a preset initial classification model corresponding to the maximum classification accuracy as a preset classification model, wherein the preset classification model includes a preset random forest model; Input each of the tourism resource monomers into each classification tree in the preset random forest model for classification, and obtain the classification results of each classification tree for the tourism resource monomer; Based on the classification results corresponding to each classification tree, the resource category information to which each tourism resource monomer belongs is determined.
4. The method according to claim 1, characterized in that The step of performing classification processing on each of the tourism resource monomers to obtain monomer level information corresponding to each of the tourism resource monomers includes: Determine the frequency of occurrence of each of the tourism resource monomers in the travel diary data, and use the frequency as the importance corresponding to each of the tourism resource monomers; Performing semantic analysis on the travel notes data belonging to each of the tourism resource monomers to obtain the tourists' satisfaction with each of the tourism resource monomers; Determine the word frequency of each tourism resource monomer in each network, and determine the influence degree of each tourism resource monomer based on the word frequency; Determine the weight coefficients corresponding to the importance, satisfaction, and influence respectively; Based on the weight coefficient, the importance, satisfaction and influence corresponding to each tourism resource monomer are added together to obtain monomer level information corresponding to each tourism resource monomer; The determination of the weight coefficients corresponding to the importance, satisfaction and influence respectively includes: Determine the importance standard deviation and the importance average of the importance corresponding to each tourism resource monomer, and based on the importance standard deviation and the importance average, perform standardization on the importance to obtain a standardized importance; Determine the satisfaction degree standard deviation and the satisfaction degree average value of the satisfaction degree corresponding to each of the tourism resource monomers, and standardize the satisfaction degree based on the satisfaction degree standard deviation and the satisfaction degree average value to obtain the standardized satisfaction degree; Determine the standard deviation of the impact degree and the average impact degree of the impact degree corresponding to each of the tourism resource monomers, and based on the standard deviation of the impact degree and the average impact degree, perform standardization processing on the impact degree to obtain a standardized impact degree; Based on the standardized importance, standardized satisfaction and standardized influence corresponding to each tourism resource monomer, a resource classification decision matrix is constructed, wherein each tourism resource monomer constitutes a row in the resource classification decision matrix, and the standardized importance, standardized satisfaction and standardized influence constitute a column in the resource classification decision matrix; Based on each element in the resource classification decision matrix, the entropy values corresponding to the importance, satisfaction and influence are determined respectively; Based on the entropy value, the difference coefficients corresponding to the importance, satisfaction and influence are determined respectively; Based on the difference coefficient, the weight coefficients corresponding to the importance, satisfaction and influence are determined respectively.
5. The method according to claim 1, characterized in that The determining of the spatial selectivity information of each tourism resource monomer includes: Based on the tourist trajectory data, determining various travel routes of tourists in the target area; A target driving route including any tourism resource monomer among the tourism resource monomers is determined in each driving route, and the number of the target driving routes is determined as the spatial selectivity information of any tourism resource monomer.
6. The method according to claim 1, characterized in that The step of determining the association degree information between the tourism resource monomers based on the travel diary data includes: Determine target travel record data including at least two tourism resource monomers in each travel record data; For each tourism resource monomer appearing in the target travel diary data, a frequent item set is determined, wherein each frequent item set contains a tourism resource monomer; Determine a first frequency of occurrence of a corresponding tourism resource monomer in each of the frequent item sets in each of the target travel diary data, and determine the first frequency as a frequent support information of the frequent item set; Determine a target frequent item set greater than a preset support threshold value in the frequent support information corresponding to each frequent item set; Based on each of the target frequent item sets, two frequent item sets are determined, wherein each of the two frequent item sets contains two tourism resource monomers; Determine the second frequency of the two tourism resource monomers in each of the two frequent item sets appearing together in each of the target travel diary data, and determine the second frequency as the second frequent support information of the two frequent item sets; Determine the target two frequent item sets greater than the preset support threshold in the two frequent support information corresponding to each of the two frequent item sets, and determine the eliminated two frequent item sets less than or equal to the preset support threshold in the two frequent support information corresponding to each of the two frequent item sets, wherein each eliminated two frequent item set contains an eliminated tourism resource monomer combination consisting of two tourism resource monomers; Based on each of the target two frequent item sets, three frequent item sets are determined, wherein each of the three frequent item sets contains three tourism resource monomers, and each of the three frequent item sets does not include a combination of tourism resource monomers that are eliminated; Determine the third frequency of the three tourism resource monomers in each of the three frequent item sets appearing in each of the target travel diary data, and determine the third frequency as the three frequent support information of the three frequent item sets; Based on the one frequent item set and its corresponding one frequent support information, the two frequent item sets and its corresponding two frequent support information, the three frequent item sets and its corresponding three frequent support information, the association degree information between the tourism resource monomers is determined.
7. The method according to claim 1, characterized in that The clustering process is performed on each of the tourism resource monomers to obtain the cluster category information to which each of the tourism resource monomers belongs, including: Determine any tourism resource monomer among the tourism resource monomers, and count the data density in the field corresponding to the any tourism resource monomer; If the data density is greater than a preset density threshold, any tourism resource monomer is determined as a cluster center; Based on the cluster center, the tourism resource monomers are clustered to obtain the cluster category information to which the tourism resource monomers belong, wherein the tourism resource monomers that do not belong to any cluster category information are determined as abnormal monomers.
8. A combination device of tourism resource monomers, characterized in that: include: An acquisition unit, used to acquire resource description data in a target area, wherein the resource description data includes: travel notes data, geographic information data, and tourist trajectory data; An entity recognition unit, used to perform tourism resource entity recognition on the resource description data to obtain each tourism resource entity contained in the resource description data; A processing unit, used to classify each of the tourism resource monomers to obtain resource category information to which each of the tourism resource monomers belongs, and to grade each of the tourism resource monomers to obtain monomer level information corresponding to each of the tourism resource monomers; A first determining unit is used to determine the monomer distance information between each of the tourism resource monomers and the spatial selectivity information of each of the tourism resource monomers based on the geographic information data; A second determining unit is used to determine the association degree information between the tourism resource monomers based on the travel record data, and cluster the tourism resource monomers to obtain the cluster category information to which the tourism resource monomers belong; A construction unit, for constructing a tourism resource knowledge graph corresponding to each of the tourism resource monomers based on the resource category information, monomer level information, monomer distance information, spatial selectivity information, association degree information and cluster category information, wherein each of the tourism resource monomers is used as a node in the tourism resource knowledge graph, the monomer distance information is used as an edge in the tourism resource knowledge graph, the resource category information is used as a node label of the corresponding node in the tourism resource knowledge graph, and the monomer level information, spatial selectivity information, association degree information and cluster category information are used as attribute information of the corresponding node in the tourism resource knowledge graph; The third determining unit is used to determine a combination scheme of tourism resource monomers in the target area based on the tourism resource knowledge graph.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Cultural tourism resource recommendation method based on deep learning and knowledge graph
CN110795571A
Knowledge question and answer retrieval method and device based on tourism domain knowledge graph
CN111353030A
Intelligent question and answer method and system based on tourism knowledge graph
CN113535917A
Tourism knowledge graph model determination method and device
CN114036317A
Multi-modal tourism information positioning type retrieval method based on tourism knowledge graph
CN115827881A
