CN112231568B - Hotel label automatic configuration method and device, electronic equipment and storage medium - Google Patents

Hotel label automatic configuration method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112231568B
CN112231568B CN202011141208.7A CN202011141208A CN112231568B CN 112231568 B CN112231568 B CN 112231568B CN 202011141208 A CN202011141208 A CN 202011141208A CN 112231568 B CN112231568 B CN 112231568B
Authority
CN
China
Prior art keywords
rule
hotel
list
label
tag
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011141208.7A
Other languages
Chinese (zh)
Other versions
CN112231568A (en
Inventor
周俊
郑琳奕
乔继振
郑浩华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ctrip Computer Technology Shanghai Co Ltd
Original Assignee
Ctrip Computer Technology Shanghai Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ctrip Computer Technology Shanghai Co Ltd filed Critical Ctrip Computer Technology Shanghai Co Ltd
Priority to CN202011141208.7A priority Critical patent/CN112231568B/en
Publication of CN112231568A publication Critical patent/CN112231568A/en
Application granted granted Critical
Publication of CN112231568B publication Critical patent/CN112231568B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24564Applying rules; Deductive queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/12Hotels or restaurants

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Tourism & Hospitality (AREA)
  • Computing Systems (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a hotel label automatic configuration method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring a hotel information list, wherein the hotel information list stores a plurality of attribute information of a hotel; acquiring a rule list, wherein each rule item in the rule list comprises a rule identifier, rule content and a tag number associated with the rule content; carrying out rule analysis on the hotel information list and the rule list to generate a rule result list, wherein the rule result list stores rule results of each hotel in the hotel information list on each rule item and tag numbers associated with the rule items; acquiring a tag list, wherein each tag item in the tag list comprises a tag number and a logic relationship of a rule associated with the tag number; and carrying out label analysis on the rule result table and the label list to generate a label result table, wherein the label result table stores hotels and associated label numbers of which the rule results accord with the logic relationship. The method and the device provided by the application realize automatic configuration of hotel labels.

Description

Hotel label automatic configuration method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer application technologies, and in particular, to a hotel label automatic configuration method, a hotel label automatic configuration device, an electronic device, and a storage medium.
Background
In hotel display and search, the OTA (online travel agency) industry generally adopts associated hotel labels, so that hotel recommendation, big data analysis, result display and the like are facilitated.
Currently, matching for hotels and labels typically develops a script for each label one by one (one script for each label), so that the script for the label is executed for each hotel to determine whether the hotel is associated with the label. As the number of tags increases, the number of scripts increases, and thus, maintenance costs increase dramatically. Meanwhile, the script codes have high repetition rate, so that the problems of storage space cost and communication cost are caused.
Therefore, how to realize automatic configuration of hotels and labels through simple configuration and analysis, so as to solve the problem of code repetition, and reduce the workload and complexity of operators and developers at the same time, is a technical problem to be solved urgently by those skilled in the art.
Disclosure of Invention
In order to overcome the defects in the prior art, the application provides a hotel label automatic configuration method, a device, electronic equipment and a storage medium, which are used for realizing automatic configuration of hotels and labels through simple configuration and analysis, so that the problem of code repetition is solved, and meanwhile, the workload and complexity of operators and developers are reduced.
According to one aspect of the application, there is provided a hotel label automatic configuration method, comprising:
acquiring a hotel information list, wherein the hotel information list stores a plurality of attribute information of a hotel;
obtaining a rule list, wherein each rule item in the rule list comprises a rule identifier, rule content and a tag number associated with the rule content;
performing rule analysis on the hotel information list and the rule list to generate a rule result list, wherein the rule result list stores rule results of each hotel in the hotel information list for each rule item and tag numbers associated with the rule items;
acquiring a tag list, wherein each tag item in the tag list comprises a tag number and a logic relation of a rule associated with the tag number;
and carrying out label analysis on the rule result table and the label list to generate a label result table, wherein the label result table stores hotels and associated label numbers of which the rule results accord with the logic relationship.
In some embodiments of the present application, the performing rule parsing on the hotel information list and the rule list to generate a rule result list includes:
and tiling the matching result of the rule identification into a record by taking the identification and the label number of the hotel as the main key, and converting the result of rule analysis.
In some embodiments of the present application, the hotel label auto-configuration method is periodically performed, and the hotel label auto-configuration method further comprises one or more of the following steps before each execution:
updating the hotel information list;
updating the rule list;
updating the tag list,
In some embodiments of the present application, the performing label parsing on the rule result table and the label list to generate a label result table includes:
comparing the label result table with a previous label result table generated when the previous hotel label automatic configuration method is executed;
according to the comparison result, identifying hotels which exist in the current tag result table but do not exist in the previous tag result table as newly added hotels;
and according to the comparison result, identifying the hotels which do not exist in the current tag result table but exist in the previous tag result table as deleted hotels.
In some embodiments of the present application, after comparing the tag result table with a previous tag result table generated when the previous hotel tag automatic configuration method is performed, the method further includes:
and according to the comparison result, identifying the hotel with inconsistent hotel labels in the current label result table and the hotel labels in the previous label result table as label updating hotels.
In some embodiments of the application, the list of hotel information includes one or more hotel attribute tables of a hotel establishment table, a hotel commentary table, a hotel room table, a hotel sight table, a hotel policy table, a hotel location table.
In some embodiments of the application, the rule parsing and the tag parsing are performed in parallel on the same object.
According to still another aspect of the present application, there is also provided a hotel label automatic configuration apparatus, including:
the hotel information acquisition module is used for acquiring a hotel information list, and the hotel information list stores a plurality of attribute information of a hotel;
the second acquisition module is used for acquiring a rule list, and each rule item in the rule list comprises a rule identifier, rule content and a tag number associated with the rule content;
the rule analysis module is used for carrying out rule analysis on the hotel information list and the rule list to generate a rule result list, wherein the rule result list stores rule results of each hotel in the hotel information list for each rule item and tag numbers associated with the rule items;
a third obtaining module, configured to obtain a tag list, where each tag item in the tag list includes a tag number and a logical relationship of rules associated with the tag number;
and the label analysis module is used for carrying out label analysis on the rule result table and the label list to generate a label result table, and the label result table stores hotels and associated label numbers of which the rule results accord with the logic relationship.
According to still another aspect of the present application, there is also provided an electronic apparatus including: a processor; a storage medium having stored thereon a computer program which, when executed by the processor, performs the steps of the hotel label auto-configuration method as described above.
According to yet another aspect of the present application, there is also provided a storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the hotel label auto-configuration method as described above.
Compared with the prior art, the application has the advantages that:
decoupling the hotel information list, the rule list and the tag list, so that each hotel information list, each rule list and each tag list can be independently updated and configured, and the workload and complexity of operators and developers are reduced; through rule analysis and label analysis, the matching of the rule and the hotel and the matching of the rule and the label are decoupled, so that the matching of the hotel and the label is realized through the same architecture, and the code repetition problem is solved. Therefore, the automatic configuration of hotels and labels can be realized through simple configuration and analysis, so that the problem of code repetition is solved, and the workload and complexity of operators and developers are reduced.
Drawings
The above and other features and advantages of the present application will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings.
Fig. 1 shows a flow chart of a hotel label auto-configuration method according to an embodiment of the application.
FIG. 2 illustrates a flow chart of a multiple tag result table merge in accordance with a specific embodiment of the present application.
Fig. 3 shows a schematic diagram of a hotel label auto-configuration method according to an embodiment of the application.
Fig. 4 shows a block diagram of a hotel label auto-configuration device according to an embodiment of the application.
Fig. 5 schematically illustrates a computer-readable storage medium in an exemplary embodiment of the present disclosure.
Fig. 6 schematically illustrates a schematic diagram of an electronic device in an exemplary embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor devices and/or microcontroller devices.
In order to solve the defects of the prior art, the automatic configuration of the hotel and the labels is realized through simple configuration and analysis, so that the problem of code repetition is solved, and meanwhile, the workload and complexity of operators and developers are reduced.
Referring first to fig. 1, fig. 1 shows a schematic diagram of a hotel label auto-configuration method according to an embodiment of the application. The hotel label automatic configuration method comprises the following steps:
step S110: and acquiring a hotel information list, wherein the hotel information list stores a plurality of attribute information of a hotel.
Specifically, the hotel information list may include one or more hotel attribute tables of a hotel establishment table, a hotel comment table, a hotel room table, a hotel sight spot table, a hotel policy table, and a hotel location table.
The hotel facilities list may store, for example, hotel names, hotel identifications, and facility names contained by the hotels; the hotel review form may include, for example, a hotel name, a hotel identification, a hotel score, a hotel evaluation keyword, and the like; hotel room type tables may include, for example, hotel names, hotel identifications, and various types of rooms included in the hotel; the hotel sight table may include, for example, a hotel name, a hotel identification, a sight near the hotel, and a distance between the sight and the hotel; hotel policy tables may include, for example, hotel names, hotel identifications, and hotel policies (such as check-in time, check-out time, etc.); the hotel location list may include, for example, a hotel name, a hotel identification, a hotel location area, and the like. The list of hotel information is described above only schematically and the application is not limited thereto.
In some variations, attributes that need to be rule matched may be extracted from the hotel information list, thus eliminating the need to read the contents of the entire hotel information list.
Step S120: a rule list is obtained, wherein each rule item in the rule list comprises a rule identification, rule content and a tag number associated with the rule content.
In particular, rule identification is used to mark different rules, rule content is used to describe and execute the rule.
In particular, a rule configuration interface may be provided to facilitate configuration by a user. The user configuration interface can be converted into rule contents through simple field selection, logic relation selection and field value setting, so that relevant users can conveniently set the rule contents without professional coding knowledge.
Step S130: and carrying out rule analysis on the hotel information list and the rule list to generate a rule result list, wherein the rule result list stores rule results of each hotel in the hotel information list for each rule item and tag numbers associated with the rule items.
Specifically, each hotel of the hotel information list is matched with each rule in the rule list, and when the matching is successful, the matching result is set to be true; and if the matching fails, setting the matching result as false.
Specifically, in step S130, the hotel identifier and the tag number may be used as a primary key, the matching result of the rule identifier may be tiled into a record, and the result of the rule analysis may be rearranged. For example, a hotel identification, a tag number, a plurality of rule identifications associated with the tag number, and a resolution result (true or false) for each rule are stored in each row of the rule result table. Thus, the tag parsing in step S150 is facilitated by the permutation operation.
Step S140: a tag list is obtained, wherein each tag item in the tag list comprises a tag number and a logic relation of rules associated with the tag number.
Specifically, the tag list may also be configured through a configuration page.
Step S150: and carrying out label analysis on the rule result table and the label list to generate a label result table, wherein the label result table stores hotels and associated label numbers of which the rule results accord with the logic relationship.
In the hotel label automatic configuration method provided by the application, the hotel information list, the rule list and the label list are decoupled, so that each hotel information list, each rule list and each label list can be independently updated and configured, and the workload and the complexity of operators and developers are reduced; through rule analysis and label analysis, the matching of the rule and the hotel and the matching of the rule and the label are decoupled, so that the matching of the hotel and the label is realized through the same architecture, and the code repetition problem is solved. Therefore, the automatic configuration of hotels and labels can be realized through simple configuration and analysis, so that the problem of code repetition is solved, and the workload and complexity of operators and developers are reduced.
In some embodiments of the present application, the hotel label auto-configuration method is periodically performed, and the hotel label auto-configuration method further comprises one or more of the following steps before each execution: updating the hotel information list; updating the rule list; updating the tag list.
Specifically, in this embodiment, for example, the hotel label may be automatically configured every early morning (every week-early morning, every month-scheduled early morning, the application is not limited thereto), and then the hotel information list may be updated in real-time (such as information updates with increased hotels, hotel stops, increased hotel facilities, decreased hotel scores, etc.) prior to the automatic configuration; the rule list and/or tag list may be updated through a configuration interface.
Further, FIG. 2 illustrates a flow chart of a multiple tag result table merge in accordance with a specific embodiment of the present application. Fig. 2 shows the steps after the step S150 of performing label parsing on the rule result table and the label list to generate a label result table:
step S160: comparing the label result table with a previous label result table generated when the previous hotel label automatic configuration method is executed;
step S170: according to the comparison result, identifying hotels which exist in the current tag result table but do not exist in the previous tag result table as newly added hotels;
step S180: according to the comparison result, identifying hotels which do not exist in the current tag result table but exist in the previous tag result table as deleted hotels;
step S190: and according to the comparison result, identifying the hotel with inconsistent hotel labels in the current label result table and the hotel labels in the previous label result table as label updating hotels.
Specifically, steps S170 to S190 may be performed simultaneously, in reverse or in any order. Part of the steps S170 to S190 may be omitted, which is not a limitation of the present application.
Therefore, the hotel is identified through the comparison result, so that more information can be obtained when the hotel is consumed by a downstream application program. For example, in the recommendation of a hotel, a new icon is set to mark the user of the new hotel.
Fig. 3 shows a schematic diagram of a hotel label auto-configuration method according to an embodiment of the application.
As in fig. 3, the rule list 220 and the hotel information list 230 are first input to the rule resolution 240. The rule list may include, for example: rule A { "HotelName": "vacation", "Star": "5" }, associated tag number tagid01; rule B { "CommentScore": "4.2", "Commentcount": "200" }, associated tag number tagid01. Therefore, the rule A is used for judging that the hotel name comprises vacation and the hotel with the hotel star grade of 5; rule B is used for judging hotels with scores greater than 4.2 and evaluating the hotels with numbers greater than 200. A rule result table 250 is generated via rule parsing 240 by the rule list 220 and hotel information list 230. When the list of hotels includes hotel 001 and hotel 002, the rule result table 250 may include: hotel 001: { "A": "wire", "B": "wire", "tagid":01}; hotel 002: { "A": "wire", "B": "false", "tagid":01}. Then, the rule result table 250 and the tag list 210 are subjected to tag parsing 260. In this embodiment, the tag list may include, for example: tagid01; a & B (a is true and B is true, in other embodiments of the application, different rule logic may be used, such as a being true or B being true, etc.). Thus, rule result table 250 and tag list 210 may obtain a tag result table via tag parsing 260. That is, only hotel 001 meets the rules of tag tagid01, and the tag result table configures tag tagid01 to hotel 001. Further, after the tag result table 270 is obtained, the hotel may be identified (e.g., as new, deleted, updated) by combining 280 the steps to compare with the previously obtained tag result table 270.
In some embodiments of the application, the rule parsing and the tag parsing may be performed in parallel with the same object. In other words, rule parsing may execute the same type of rule in parallel; tag parsing may perform the same type of tag matching in parallel. The present application may implement more variations, and will not be described in detail herein.
In one specific implementation of the present application, two SHELL tasks may first be started periodically, synchronizing the front-end configured tag and rule data to HIVE. Converting rule JsonInfo field data of a rule table into a MAP format according to rule type; the rule expression field (rule logic expression) of the tag table is converted into an HSQL statement. Then, maintaining a fact table JOB of six hotel dimensions such as commentary, room, facilities, policies, scenic spots, hotel basic attributes and the like on HIVE, and running the JOB daily to update the fact table data; the data format is predefined in advance, so that the analysis engine is convenient to access.
After the rule and hotel fact table data are updated, a rule analysis engine JOB is started. The rule analysis engine firstly extracts rule JsonInfo information of the rule table, and then makes Cartesian set according to rule type RULETYPE and the corresponding fact table. The process is a process of assembling and executing the HSQL, the logic is complex, and the JOB execution time is long. The types of the early-stage rules are fewer, and the rule analysis engine JOB can be executed in series; when the rule types are increased, the rule parsing engine JOB may be executed in parallel by rule type.
After the rule analysis engine JOB is successfully executed, performing row-column conversion operation next; and tiling the rule field into a record by taking the hotel ID and the tag ID as a joint primary key.
The logical relationship between one label rule is fixed (can be modified later), so only one HSQL task is executed; and if the result is true, the label is matched with the hotel. And (3) sequentially cycling, and executing all the tag rule logic expressions once to complete the matching of the tag and the hotel.
Finally, carrying out MERGE (merging) on the current data and the historical data, finding out a newly added hotel, and marking the newly added hotel as N; hotels that do not exist in the current data but exist in the historical data are marked as 'D'; the two data are sent out in the form of QMQ (message queue) for consumption by downstream systems.
The foregoing is merely illustrative of various implementations of the application, and the application is not limited thereto.
The application further provides a hotel label automatic configuration device, and fig. 4 shows a schematic diagram of the hotel label automatic configuration device according to the embodiment of the application. The hotel label auto-configuration device 300 includes a first acquisition module 310, a second acquisition module 320, a rule resolution module 330, a third acquisition module 340, and a label resolution module 350.
The first obtaining module 310 is configured to obtain a hotel information list, where the hotel information list stores a plurality of attribute information of a hotel;
the second obtaining module 320 is configured to obtain a rule list, where each rule item in the rule list includes a rule identifier, a rule content, and a tag number associated with the rule content;
the rule analysis module 330 is configured to perform rule analysis on the hotel information list and the rule list, and generate a rule result table, where the rule result table stores a rule result of each hotel in the hotel information list for each rule item and a tag number associated with the rule item;
the third obtaining module 340 is configured to obtain a tag list, where each tag item in the tag list includes a tag number and a logical relationship of rules associated with the tag number;
the tag parsing module 350 is configured to parse the rule result table and the tag list to generate a tag result table, where the tag result table stores hotels and associated tag numbers with rule results conforming to the logical relationship.
In the hotel label automatic configuration device provided by the application, the hotel information list, the rule list and the label list are decoupled, so that each hotel information list, each rule list and each label list can be independently updated and configured, and the workload and the complexity of operators and developers are reduced; through rule analysis and label analysis, the matching of the rule and the hotel and the matching of the rule and the label are decoupled, so that the matching of the hotel and the label is realized through the same architecture, and the code repetition problem is solved. Therefore, the automatic configuration of hotels and labels can be realized through simple configuration and analysis, so that the problem of code repetition is solved, and the workload and complexity of operators and developers are reduced.
Fig. 4 is a schematic illustration only, and the hotel label automatic configuration device provided by the application is in the scope of the application without departing from the concept of the application. The hotel label automatic configuration device provided by the application can be realized by software, hardware, firmware, plug-in units and any combination of the software, the hardware, the firmware, the plug-in units, and the hotel label automatic configuration device is not limited by the application.
In an exemplary embodiment of the present disclosure, there is also provided a computer readable storage medium having stored thereon a computer program which, when executed by, for example, a processor, can implement the steps of the hotel label auto-configuration method of any of the embodiments described above. In some possible embodiments, the various aspects of the application may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the application as described in the hotel label auto-configuration method section of this specification, when said program product is run on the terminal device.
Referring to fig. 5, a program product 400 for implementing the above-described method according to an embodiment of the present application is described, which may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present application is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable storage medium may also be any readable medium that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the tenant computing device, partially on the tenant device, as a stand-alone software package, partially on the tenant computing device, partially on a remote computing device, or entirely on a remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the tenant computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected through the internet using an internet service provider).
In an exemplary embodiment of the present disclosure, an electronic device is also provided, which may include a processor, and a memory for storing executable instructions of the processor. Wherein the processor is configured to perform the steps of the hotel label auto-configuration method of any of the embodiments described above via execution of the executable instructions.
Those skilled in the art will appreciate that the various aspects of the application may be implemented as a system, method, or program product. Accordingly, aspects of the application may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
An electronic device 600 according to this embodiment of the application is described below with reference to fig. 6. The electronic device 600 shown in fig. 6 is merely an example, and should not be construed as limiting the functionality and scope of use of embodiments of the present application.
As shown in fig. 6, the electronic device 600 is in the form of a general purpose computing device. Components of electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one memory unit 620, a bus 630 connecting the different system components (including the memory unit 620 and the processing unit 610), a display unit 640, etc.
Wherein the storage unit stores program code that is executable by the processing unit 610 such that the processing unit 610 performs the steps according to various exemplary embodiments of the present application described in the hotel label auto-configuration method section of the present specification. For example, the processing unit 610 may perform the steps as shown in fig. 1 to 3.
The memory unit 620 may include readable media in the form of volatile memory units, such as Random Access Memory (RAM) 6201 and/or cache memory unit 6202, and may further include Read Only Memory (ROM) 6203.
The storage unit 620 may also include a program/utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 630 may be a local bus representing one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or using any of a variety of bus architectures.
The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a tenant to interact with the electronic device 600, and/or any device (e.g., router, modem, etc.) that enables the electronic device 600 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 650. Also, electronic device 600 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 over the bus 630. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 600, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a usb disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, or a network device, etc.) to perform the hotel tag auto-configuration method according to the embodiments of the present disclosure.
Compared with the prior art, the application has the advantages that:
decoupling the hotel information list, the rule list and the tag list, so that each hotel information list, each rule list and each tag list can be independently updated and configured, and the workload and complexity of operators and developers are reduced; through rule analysis and label analysis, the matching of the rule and the hotel and the matching of the rule and the label are decoupled, so that the matching of the hotel and the label is realized through the same architecture, and the code repetition problem is solved. Therefore, the automatic configuration of hotels and labels can be realized through simple configuration and analysis, so that the problem of code repetition is solved, and the workload and complexity of operators and developers are reduced.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (9)

1. An automated hotel label configuration method, comprising:
acquiring a hotel information list, wherein the hotel information list stores a plurality of attribute information of a hotel;
obtaining a rule list, wherein each rule item in the rule list comprises a rule identifier, rule content and a tag number associated with the rule content;
performing rule analysis on the hotel information list and the rule list to generate a rule result list, wherein the rule result list stores rule results of each hotel in the hotel information list for each rule item and tag numbers associated with the rule items;
acquiring a tag list, wherein each tag item in the tag list comprises a tag number and a logic relation of a rule associated with the tag number;
performing label analysis on the rule result table and the label list to generate a label result table, wherein the label result table stores hotels and associated label numbers of which rule results accord with the logic relationship, and compares the label result table with a previous label result table generated when a previous hotel label automatic configuration method is executed; according to the comparison result, identifying hotels which exist in the current tag result table but do not exist in the previous tag result table as newly added hotels; and according to the comparison result, identifying the hotels which do not exist in the current tag result table but exist in the previous tag result table as deleted hotels.
2. The automated hotel label configuration method of claim 1, wherein the rule parsing the list of hotel information and the list of rules to generate a list of rule results comprises:
and tiling the matching result of the rule identification into a record by taking the identification and the label number of the hotel as the main key, and converting the result of rule analysis.
3. The hotel label auto-configuration method of claim 1, wherein the hotel label auto-configuration method is performed periodically, and wherein each time the hotel label auto-configuration method is performed, the hotel label auto-configuration method further comprises one or more of the following steps:
updating the hotel information list;
updating the rule list;
updating the tag list.
4. The hotel label auto-configuration method of claim 3, wherein after comparing the label result table with a previous label result table generated when the previous hotel label auto-configuration method was performed, further comprising:
and according to the comparison result, identifying the hotel with inconsistent hotel labels in the current label result table and the hotel labels in the previous label result table as label updating hotels.
5. The automated hotel label configuration method of any of claims 1 to 4, wherein the list of hotel information comprises one or more hotel attribute lists of a hotel establishment list, a hotel comment list, a hotel room list, a hotel sight list, a hotel policy list, a hotel location list.
6. The hotel label auto-configuration method of any of claims 1 to 4, wherein the rule parsing and the label parsing are performed in parallel on the same object.
7. A hotel label auto-configuration device, comprising:
the hotel information acquisition module is used for acquiring a hotel information list, and the hotel information list stores a plurality of attribute information of a hotel;
the second acquisition module is used for acquiring a rule list, and each rule item in the rule list comprises a rule identifier, rule content and a tag number associated with the rule content;
the rule analysis module is used for carrying out rule analysis on the hotel information list and the rule list to generate a rule result list, wherein the rule result list stores rule results of each hotel in the hotel information list for each rule item and tag numbers associated with the rule items;
a third obtaining module, configured to obtain a tag list, where each tag item in the tag list includes a tag number and a logical relationship of rules associated with the tag number;
the label analysis module is used for carrying out label analysis on the rule result table and the label list to generate a label result table, wherein the label result table stores hotels and associated label numbers of which the rule results accord with the logic relationship, and compares the label result table with a previous label result table generated when a previous hotel label automatic configuration method is executed; according to the comparison result, identifying hotels which exist in the current tag result table but do not exist in the previous tag result table as newly added hotels; and according to the comparison result, identifying the hotels which do not exist in the current tag result table but exist in the previous tag result table as deleted hotels.
8. An electronic device, the electronic device comprising:
a processor;
a storage medium having stored thereon a computer program which, when executed by the processor, performs the hotel label auto-configuration method of any one of claims 1 to 6.
9. A storage medium having stored thereon a computer program which, when executed by a processor, performs the hotel label auto-configuration method of any of claims 1 to 6.
CN202011141208.7A 2020-10-22 2020-10-22 Hotel label automatic configuration method and device, electronic equipment and storage medium Active CN112231568B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011141208.7A CN112231568B (en) 2020-10-22 2020-10-22 Hotel label automatic configuration method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011141208.7A CN112231568B (en) 2020-10-22 2020-10-22 Hotel label automatic configuration method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112231568A CN112231568A (en) 2021-01-15
CN112231568B true CN112231568B (en) 2023-11-03

Family

ID=74110485

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011141208.7A Active CN112231568B (en) 2020-10-22 2020-10-22 Hotel label automatic configuration method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112231568B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112988770B (en) * 2021-02-08 2024-03-26 腾讯科技(深圳)有限公司 Method, device, electronic equipment and storage medium for updating serial number
CN113379499A (en) * 2021-06-18 2021-09-10 北京沃东天骏信息技术有限公司 Article screening method and apparatus, electronic device, and storage medium
CN113434552B (en) * 2021-06-28 2023-07-21 青岛海尔科技有限公司 Data request processing method and device, storage medium and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106919625A (en) * 2015-12-28 2017-07-04 中国移动通信集团公司 A kind of internet customer attribute recognition methods and device
CN107481054A (en) * 2017-08-14 2017-12-15 携程计算机技术(上海)有限公司 The push of hotel's favor information and device, electronic equipment, storage medium
CN107992585A (en) * 2017-12-08 2018-05-04 北京百度网讯科技有限公司 Universal tag method for digging, device, server and medium
CN109815377A (en) * 2018-12-14 2019-05-28 深圳壹账通智能科技有限公司 Method for building up, device, computer equipment and the storage medium of label
CN111327679A (en) * 2020-01-19 2020-06-23 苏宁云计算有限公司 Rule analysis method and device
CN111723565A (en) * 2020-06-19 2020-09-29 宫辉 Legal case keyword processing method, processing system and equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106919625A (en) * 2015-12-28 2017-07-04 中国移动通信集团公司 A kind of internet customer attribute recognition methods and device
CN107481054A (en) * 2017-08-14 2017-12-15 携程计算机技术(上海)有限公司 The push of hotel's favor information and device, electronic equipment, storage medium
CN107992585A (en) * 2017-12-08 2018-05-04 北京百度网讯科技有限公司 Universal tag method for digging, device, server and medium
CN109815377A (en) * 2018-12-14 2019-05-28 深圳壹账通智能科技有限公司 Method for building up, device, computer equipment and the storage medium of label
CN111327679A (en) * 2020-01-19 2020-06-23 苏宁云计算有限公司 Rule analysis method and device
CN111723565A (en) * 2020-06-19 2020-09-29 宫辉 Legal case keyword processing method, processing system and equipment

Also Published As

Publication number Publication date
CN112231568A (en) 2021-01-15

Similar Documents

Publication Publication Date Title
CN112231568B (en) Hotel label automatic configuration method and device, electronic equipment and storage medium
CN109902105B (en) Data query system, method, device and storage medium for micro-service architecture
CN111339186B (en) Workflow engine data synchronization method, device, medium and electronic equipment
CN110851324B (en) Log-based routing inspection processing method and device, electronic equipment and storage medium
CN111143422B (en) Data retrieval method, data retrieval device, storage medium and electronic equipment
US20150106701A1 (en) Input support method and information processing system
CN111866158A (en) Routing method, routing device, computer equipment and storage medium
US10261998B2 (en) Search apparatus and search method
CN115346686A (en) Relation map generation method and device, storage medium and electronic equipment
CN114358742A (en) Workflow execution method, device, equipment and storage medium
US10489728B1 (en) Generating and publishing a problem ticket
US20120005202A1 (en) Method for Acceleration of Legacy to Service Oriented (L2SOA) Architecture Renovations
CN114647735A (en) Relation graph display method, medium and display device
WO2023151397A1 (en) Application program deployment method and apparatus, device, and medium
CN109739724B (en) Data monitoring method, system, electronic device and storage medium
CN117314139A (en) Modeling method and device for business process, terminal equipment and storage medium
CN111158777A (en) Component calling method and device and computer readable storage medium
CN111177247A (en) Data conversion method, device and storage medium
JP2005332098A (en) Testing item extraction system, testing item extraction device, testing item extraction method used for the device, and program therefor
CN115421831A (en) Method, device, equipment and storage medium for generating calling relation of activity component
CN113553826A (en) Information input method and device combining RPA and AI and electronic equipment
CN112988583A (en) Method and device for testing syntax compatibility of database
CN112165549A (en) Short message processing method, device, equipment and medium applied to intelligent terminal
CN111753548A (en) Information acquisition method and device, computer storage medium and electronic equipment
CN111176718A (en) Script online method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant