CN111340580A - Method and device for determining house type, computer equipment and storage medium - Google Patents

Method and device for determining house type, computer equipment and storage medium Download PDF

Info

Publication number
CN111340580A
CN111340580A CN202010080721.3A CN202010080721A CN111340580A CN 111340580 A CN111340580 A CN 111340580A CN 202010080721 A CN202010080721 A CN 202010080721A CN 111340580 A CN111340580 A CN 111340580A
Authority
CN
China
Prior art keywords
house type
matched
type name
determining
name
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.)
Granted
Application number
CN202010080721.3A
Other languages
Chinese (zh)
Other versions
CN111340580B (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.)
Shenzhen Road Tourism Technology Co Ltd
Original Assignee
Shenzhen Road Tourism Technology 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 Shenzhen Road Tourism Technology Co Ltd filed Critical Shenzhen Road Tourism Technology Co Ltd
Priority to CN202010080721.3A priority Critical patent/CN111340580B/en
Publication of CN111340580A publication Critical patent/CN111340580A/en
Application granted granted Critical
Publication of CN111340580B publication Critical patent/CN111340580B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0623Item investigation
    • G06Q30/0625Directed, with specific intent or strategy
    • G06Q30/0627Directed, with specific intent or strategy using item specifications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/36Creation of semantic tools, e.g. ontology or thesauri
    • G06F16/374Thesaurus
    • 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)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Tourism & Hospitality (AREA)
  • Databases & Information Systems (AREA)
  • Accounting & Taxation (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • Finance (AREA)
  • General Engineering & Computer Science (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Human Resources & Organizations (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Mathematical Physics (AREA)
  • Development Economics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method and a device for determining house types, computer equipment and a storage medium. The method for determining the house type in the embodiment of the invention comprises the following steps: acquiring the name of a house type to be matched; matching the house type name to be matched with each sample house type name in a house type name dictionary library to obtain a matching result corresponding to the house type name to be matched; and determining the house type corresponding to the house type name to be matched according to the matching result corresponding to the house type name to be matched. The invention can improve the accuracy of house type matching.

Description

Method and device for determining house type, computer equipment and storage medium
Technical Field
The invention relates to the technical field of hotel reservation and distribution, in particular to a room type determining method and device, computer equipment and a storage medium.
Background
With the rapid development of science and technology, the hotel distribution industry is also rapidly developed, hotel distribution enterprises need to access massive hotel suppliers, generally speaking, naming rules adopted when naming house types of different hotel suppliers are different, in order to enable users to quickly identify the house types provided by the suppliers, the common hotel distribution enterprises can define a set of standard house types which are easy to identify by the users, and associate the house type names of the hotel suppliers with the defined house type names. In order to associate the house type name of the hotel supplier with the self-defined house type name of the hotel distribution enterprise, a manual identification and association method is generally adopted, and the association method is not only inefficient, but also consumes a large amount of human resources. At present, a method for realizing the association with the house type name customized by the hotel distribution enterprise by programming and utilizing a computer program to perform keyword analysis on the house type name of the hotel supplier can greatly improve the identification efficiency, but the method has low identification accuracy on the house type name of the hotel supplier. For example, a hotel supplier has a Room type name of "Superior Room Non-browsing", but since browsing takes a "King" keyword, the Room type can be easily identified as King Room.
Disclosure of Invention
In view of the above, it is necessary to provide a method, an apparatus, a computer device, and a storage medium for determining a house type with high accuracy.
The embodiment of the invention provides a method for determining a house type, which comprises the following steps:
acquiring the name of a house type to be matched;
matching the house type name to be matched with each sample house type name in a house type name dictionary library to obtain a matching result corresponding to the house type name to be matched;
and determining the house type corresponding to the house type name to be matched according to the matching result corresponding to the house type name to be matched.
An apparatus for determining a house type, the apparatus comprising:
the acquisition module is used for acquiring the name of the house type to be matched;
the matching module is used for matching the house type name to be matched with each sample house type name in the house type name dictionary library to obtain a matching result corresponding to the house type name to be matched;
and the determining module is used for determining the house type corresponding to the house type name to be matched according to the matching result corresponding to the house type name to be matched.
A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of:
acquiring the name of a house type to be matched;
matching the house type name to be matched with each sample house type name in a house type name dictionary library to obtain a matching result corresponding to the house type name to be matched;
and determining the house type corresponding to the house type name to be matched according to the matching result corresponding to the house type name to be matched.
A computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
acquiring the name of a house type to be matched;
matching the house type name to be matched with each sample house type name in a house type name dictionary library to obtain a matching result corresponding to the house type name to be matched;
and determining the house type corresponding to the house type name to be matched according to the matching result corresponding to the house type name to be matched.
The embodiment of the invention has the following beneficial effects:
according to the house type determining method, the house type determining device, the computer equipment and the storage medium, the house type name to be matched is obtained, the house type name to be matched is matched with each sample house type name in the house type name dictionary library to obtain a matching result corresponding to the house type name to be matched, and the house type corresponding to the house type name to be matched is determined according to the matching result corresponding to the house type name to be matched. The house type determining method determines the house type corresponding to the house type name to be matched through the house type name dictionary library, is simple and easy to implement, and compared with a method for analyzing keywords through programming, the method directly matches the house type name to be matched with the house type name dictionary library to determine the house type, avoids deviation and errors generated when the keywords are directly extracted from the house type name to be matched for analysis, and can improve the accuracy of house type matching.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
FIG. 1 is a flow diagram of a method for determining a house type in one embodiment;
FIG. 2 is a flow diagram of a method for house type determination in one embodiment;
FIG. 3 is a flowchart illustrating an embodiment of determining a house type corresponding to the house type name to be matched according to a matching result corresponding to the house type name to be matched;
FIG. 4 is a flow diagram of a method for house type determination in one embodiment;
FIG. 5 is a flow diagram of a method for house type determination in one embodiment;
FIG. 6 is a flowchart illustrating an embodiment of determining a house type corresponding to the house type name to be matched according to a matching result corresponding to the house type name to be matched;
FIG. 7 is a block diagram showing the construction of a house type determining apparatus according to an embodiment;
FIG. 8 is a block diagram of a computer device in one embodiment.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In one embodiment, as shown in FIG. 1, a method for determining a house type is provided. The method can be applied to a terminal, a server and other devices capable of realizing the method for determining the house type in the embodiment of the invention. The method for determining the house type specifically comprises the following steps:
step 102: and acquiring the name of the house type to be matched.
The house type name to be matched refers to the house type name of the house type to be confirmed, and the house type refers to specific information of the room, including but not limited to bed type, level, landscape, type and the like of the room. The house type name to be matched can be the house type name of a hotel supplier or the house type name of a hotel distribution enterprise.
Step 104: and matching the house type name to be matched with each sample house type name in the house type name dictionary library to obtain a matching result corresponding to the house type name to be matched.
Wherein, the sample house type name refers to the house type name of the corresponding house type known. For example, the sample house type name may be a house type name which is already available on the market and is determined by the house type, or may be a house type name which is artificially defined according to information corresponding to the house type.
The house type name dictionary library is a set with a plurality of sample house type names and is used for matching the house type names to be matched so as to determine the house types of the house type names to be matched.
Illustratively, matching the house type name to be matched with each sample house type name in the house type name dictionary library, and judging whether the house type names are completely the same, if the house type name to be matched is completely the same as the sample house type name A and is not completely the same as other sample house type names in the house type name dictionary library, the matching result corresponding to the house type name to be matched is the same as the sample house type name A. And if the house type name to be matched is not completely the same as any sample house type name in the house type name dictionary library, the matching result corresponding to the house type name to be matched is unsuccessful matching.
Step 106: and determining the house type corresponding to the house type name to be matched according to the matching result corresponding to the house type name to be matched.
For example, the matching result corresponding to the room type name to be matched is consistent with the sample room type name a in the room type name dictionary library, and the room type corresponding to the sample room type name a can be known as the room type a according to the room type name dictionary library, so that the room type corresponding to the room type name to be matched is the room type a. And if the matching result corresponding to the house type name to be matched is that the house type name is not completely the same as any sample house type name in the house type name dictionary library and is not successfully matched, manually confirming the house type corresponding to the house type name to be matched.
According to the house type determining method, the house type name to be matched is obtained, the house type name to be matched is matched with each sample house type name in the house type name dictionary library, the matching result corresponding to the house type name to be matched is obtained, and the house type corresponding to the house type name to be matched is determined according to the matching result corresponding to the house type name to be matched. The house type determining method determines the house type corresponding to the house type name to be matched through the house type name dictionary library, is simple and easy to implement, and compared with a method for analyzing keywords through programming, the method directly matches the house type name to be matched with the house type name dictionary library to determine the house type, avoids deviation and errors generated when the keywords are directly extracted from the house type name to be matched for analysis, and can improve the accuracy of house type matching.
As shown in fig. 2, in an embodiment, before obtaining the house type name to be matched in step 102, the method further includes:
step 100A: obtaining a sample keyword set, wherein the sample keyword set comprises a plurality of sample keywords.
The sample keywords are words artificially defined according to key information corresponding to various house types. The sample keyword set refers to a set of sample keywords, and is used for determining a house type name dictionary library. Illustratively, as shown in table 1, the sample keywords in the sample keyword set I are classified into four categories, namely, Bed Type (Bed), level (Grade), Room Type (Room Type), and View (View), according to the category of the corresponding key information, i.e., the category of the keywords. Sample keywords in the sample keyword set with respect to Bed include one Single Bed (1Single Bed), Two Single Beds (2Single Beds), one Double Bed (1Double Bed), and Two Double Beds (Two Double Beds). Sample keywords in the sample keyword set for Grade include Standard, luxury (Deluxe). Sample keywords in the sample keyword set for the Room Type include Room only (Room), Suite (Suite). Sample keywords in the sample keyword set for View include sea View (sea View) and City View (city View).
TABLE 1 sample keyword set I
Figure BDA0002380219490000051
Figure BDA0002380219490000061
Step 100B: and combining the sample keywords in the sample keyword set according to a preset combination rule to obtain the house type name dictionary library.
The preset combination rule refers to a preset combination rule of sample keywords in a sample keyword set.
For example, the preset combination rule is to divide the sample keywords in the sample keyword set into a plurality of groups according to their categories, such as the sample keyword set shown in table 1, the sample keywords may be divided into (4 × 2 × 2 × 2) groups, i.e., 32 groups, each group of sample keywords includes one sample keyword corresponding to the category of each keyword, after grouping, each group of sample keywords is combined according to the arrangement order of Grade, Room Type, Bed, and View to determine the name of a first sample Room, and then according to the arrangement order of Room Type, Grade, Bed, View to determine the name of a second sample Room, and according to the arrangement principle, there exists a sample Room name
Figure BDA0002380219490000062
The 22 kinds of arrangement sequences can correspondingly obtain 22 sample house type names, and are not described in detail herein. And the obtained collection of the house type names of the plurality of samples is a house type name dictionary library. The house type name dictionary library is a set of sample house type names generated by sample keywords according to a preset combination rule in an exhaustive mode, and when the house type name to be matched is matched with the sample house type name in the house type name dictionary library, the probability of matching the house type name to be matched with the house type name to be matched or the sample house type name with higher similarity is improved, so that the efficiency of the house type determining method can be improved. If the set of sample keywords is 1Single Bed, Standard, Room, City View, 24 sample house-type names such as Standard Room (1Single Bed), Room Standard (1Single Bed), City View, etc. can be generated, and since the 24 sample house-type names are generated by the same set of sample keywords, the house-types corresponding to the 24 sample house-type names are the same.
As shown in fig. 3, in an embodiment, the matching result includes similarity between the house type name to be matched and each sample house type name in the house type name dictionary library, and the determining 106 the house type corresponding to the house type name to be matched according to the matching result corresponding to the house type name to be matched includes:
step 106A: and determining the maximum similarity according to the similarity between the house type name to be matched and each sample house type name in the house type name dictionary library.
Wherein, the similarity refers to the similarity between the house type name to be matched and the house type name of the sample. Illustratively, the house type name to be matched is ABCD, the house type name of the sample is ABCD, where C is completely different from C, and the similarity between the house type name to be matched and the house type name of the sample is 75%.
The maximum similarity is the maximum value of the similarity between the house type name to be matched and each sample house type name in the house type name dictionary library.
Illustratively, the house type name to be matched is matched with each sample house type name in the house type name dictionary library, and the similarity between the house type name to be matched and each sample house type name is determined, wherein the similarity between the house type name to be matched and the sample house type name is the highest, and the similarity between the house type name to be matched and the sample house type name is the maximum similarity.
Step 106B: and if the maximum similarity is greater than the preset similarity, determining the house type name of the sample corresponding to the maximum similarity.
The preset similarity is set, because the house type corresponding to the house type name to be matched and the house type corresponding to the sample house type name may exist, but the similarity cannot reach 100% in matching due to word habits or certain differences in expression, if the maximum similarity is smaller than or equal to the preset similarity, the house type name to be matched and any sample house type name in the house type name dictionary library are not matched, and if the maximum similarity is larger than the preset similarity, the house type name corresponding to the maximum similarity is determined, and the sample house type name is matched with the house type name to be matched.
Step 106C: and determining the house type corresponding to the house type name to be matched according to the sample house type name corresponding to the maximum similarity.
For example, the sample keyword corresponding to the sample house type name corresponding to the maximum similarity may be determined according to the house type name dictionary library, and the house type corresponding to the house type name to be matched is the house type corresponding to the sample keyword corresponding to the sample house type name.
As shown in fig. 4, in one embodiment, the method further comprises:
step 108: and if the maximum similarity is smaller than the preset similarity, generating reminding information.
The reminding information is used for reminding a user that the house type name to be matched is not successfully matched with the sample house type name in the house type name dictionary library. Illustratively, the terminal implementing the house type determining method comprises a display interface, when the maximum similarity is smaller than the preset similarity, the terminal generates the reminding information, and a dialog box including the reminding information pops up on the display interface. The terminal for implementing the house type determining method can further comprise a warning lamp, when the maximum similarity is smaller than the preset similarity, reminding information is generated, and the warning lamp is controlled to flicker for reminding a user that the matching is not successful.
As shown in fig. 5, in an embodiment, after the generating the reminder information in step 108, the method further includes:
step 110: determining keywords in the house type name to be matched;
the keywords refer to vocabularies artificially defined by key information in the house type corresponding to the house type name to be matched, and the same definition principle is adopted with the definition sample keywords when the keywords are defined. For example, 1Single bedstand defines 1Single Bed when defining the keyword in the house type name to be matched and the sample keyword.
Step 112: and updating the house type name dictionary base according to the keywords in the house type names to be matched to obtain an updated house type name dictionary base.
Illustratively, the sample keyword set II is shown in Table 2, and the house type name to be matched is A1B1C4The keyword in the house type name to be matched is A1、B1、C4Then, the sample keyword set II is updated to obtain an updated sample keyword set as shown in table 3, and then an updated room-type name dictionary base can be obtained according to the updated sample keyword set. The house type name dictionary base is updated, the number of the sample house type names in the house type name dictionary base is increased, and in the subsequent matching process of the house type names to be matched, the probability of matching the sample house type names which are consistent with the house type names to be matched or have higher similarity can be further improved, so that the efficiency of the house type determining method can be further improved.
TABLE 2 sample keyword set II
Categories of keywords Sample keywords
A A1、A2、A3
B B1、B2、B3
C C1、C2、C3
TABLE 3 update sample keyword sets
Categories of keywords Sample keywords
A A1、A2、A3
B B1、B2、B3
C C1、C2、C3、C4
As shown in fig. 6, in an embodiment, the determining, according to the matching result corresponding to the name of the house type to be matched, the house type corresponding to the name of the house type to be matched in step 106 includes:
step 106 a: and determining the keywords in the house type name to be matched according to the matching result corresponding to the house type name to be matched.
According to the matching result corresponding to the house type name to be matched, the sample house type name corresponding to the house type name to be matched can be determined, and the keyword corresponding to the sample house type name can be determined according to the house type name dictionary library, so that the keyword in the house type name to be matched can be determined. For example, the matching result corresponding to the house type name to be matched is consistent with the sample house type name a, and the keywords corresponding to the sample house type name in the house type name dictionary library are a, b, and c, and the keywords in the house type name to be matched are a, b, and c.
Step 106 b: and determining the house type corresponding to the house type name to be matched according to the keyword in the house type name to be matched.
Illustratively, the keywords in the house type name to be matched are a, b and c, where a is a standard, b is a single room, and c is 1double bed, and then the house type corresponding to the house type name to be matched is a room with a standard single room of 1double bed.
In one embodiment, the house type names to be matched comprise a first house type name to be matched and a second house type name to be matched; step 106, determining the keyword in the house type name to be matched according to the matching result corresponding to the house type name to be matched, including: determining a first keyword in the house type name to be matched according to a matching result corresponding to the house type name to be matched, and determining a second keyword in the house type name to be matched according to a matching result corresponding to the house type name to be matched; the method further comprises the following steps: and determining whether to associate the first house type name to be matched with the second house type name to be matched according to the first keyword and the second keyword.
The first room type name to be matched and the second room type name to be matched refer to two different room type names to be matched. Illustratively, the first room type name to be matched is a room type name provided by a hotel distribution enterprise, and the second room type name to be matched is a room type name provided by a hotel supplier.
The first keyword is a keyword in the house type name to be matched determined according to a matching result corresponding to the house type name to be matched. The first keywords include at least one keyword. Illustratively, the first house type to be matched is named as a luxury sea-view suite, and the first keyword consists of three keywords, namely the luxury, the sea-view and the suite.
The second keyword is a keyword in the house type name to be matched according to the matching result corresponding to the house type name to be matched. The second keywords also include at least one keyword.
Determining a first keyword in the house type name to be matched according to a matching result corresponding to the house type name to be matched, and determining the house type corresponding to the house type name to be matched according to the first keyword; and determining a second keyword in the house type name to be matched according to a matching result corresponding to the house type name to be matched, and determining the house type corresponding to the house type name to be matched according to the second keyword. If the first keyword and the second keyword are consistent, the first house type name to be matched and the second house type name to be matched are indicated to correspond to the same house type, the first house type name to be matched and the second house type name to be matched are associated, if the first keyword and the second keyword are inconsistent, the first house type name to be matched and the second house type name to be matched are indicated to correspond to different house types, and the first house type name to be matched and the second house type name to be matched are not associated. Whether the house type names to be matched are associated or not is determined by judging whether the corresponding keywords between the house type names to be matched are the same or not, so that the house type names to be matched corresponding to different house types can be effectively prevented from being associated, and the accuracy of association between the house type names to be matched is improved.
Exemplarily, determining that a first keyword in a first house type name to be matched is luxury, sea scenery and suite according to a matching result of the first house type name to be matched, and determining that a second keyword in a second house type name to be matched is standard, sea scenery and suite according to a matching result of the second house type name to be matched, wherein the first house type name to be matched and the second house type name to be matched are not associated because the first keyword and the second keyword are not consistent; and if the second keyword in the house type name to be matched is determined to be suite, luxury and sea scenery according to the matching result of the house type name to be matched, the first keyword is consistent with the second keyword, and the house type name to be matched is associated with the house type name to be matched.
As shown in fig. 7, there is provided a house type determining apparatus including:
an obtaining module 702, configured to obtain a house type name to be matched;
a matching module 704, configured to match the house type name to be matched with each sample house type name in a house type name dictionary library, so as to obtain a matching result corresponding to the house type name to be matched;
a determining module 706, configured to determine, according to the matching result corresponding to the name of the house type to be matched, the house type corresponding to the name of the house type to be matched.
The device for determining the house type matches the house type name to be matched with each sample house type name in the house type name dictionary library by acquiring the house type name to be matched, obtains the matching result corresponding to the house type name to be matched, and determines the house type corresponding to the house type name to be matched according to the matching result corresponding to the house type name to be matched. The house type determining device determines the house type corresponding to the house type name to be matched through the house type name dictionary library, is simple and feasible, and directly matches the house type name to be matched with the house type name dictionary library to determine the house type compared with a method for analyzing keywords through programming, so that the deviation and the error generated when the keywords are directly extracted from the house type name to be matched for analysis are avoided, and the accuracy of house type matching can be improved.
In one embodiment, before being used for obtaining the house type name to be matched, the device further comprises: the keyword module is used for acquiring a sample keyword set, and the sample keyword set comprises a plurality of sample keywords; and the dictionary library module is used for combining the sample keywords in the sample keyword set according to a preset combination rule to obtain the house type name dictionary library.
In an embodiment, the matching result includes similarity between the house type name to be matched and each sample house type name in the house type name dictionary library, and the determining module 706 is specifically configured to: determining the maximum similarity according to the similarity between the house type name to be matched and each sample house type name in the house type name dictionary library; if the maximum similarity is larger than the preset similarity, determining the house type name of the sample corresponding to the maximum similarity; and determining the house type corresponding to the house type name to be matched according to the sample house type name corresponding to the maximum similarity.
In one embodiment, the apparatus is further configured to: and if the maximum similarity is smaller than the preset similarity, generating reminding information.
In one embodiment, the apparatus, after being configured to generate the reminder information, is further configured to: determining keywords in the house type name to be matched; and updating the house type name dictionary base according to the keywords in the house type names to be matched to obtain an updated house type name dictionary base.
In one embodiment, the determining module 706 is specifically configured to: determining keywords in the house type name to be matched according to a matching result corresponding to the house type name to be matched; and determining the house type corresponding to the house type name to be matched according to the keyword in the house type name to be matched.
In one embodiment, the house type names to be matched comprise a first house type name to be matched and a second house type name to be matched; the determining module 706 is specifically configured to: determining a first keyword in the house type name to be matched according to a matching result corresponding to the house type name to be matched, and determining a second keyword in the house type name to be matched according to a matching result corresponding to the house type name to be matched; the apparatus is further configured to: and determining whether to associate the first house type name to be matched with the second house type name to be matched according to the first keyword and the second keyword.
FIG. 8 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be a terminal, and may also be a server. As shown in fig. 8, the computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement the room type determination method. The internal memory may also have stored therein a computer program that, when executed by the processor, causes the processor to perform the method for determining a house type. Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is proposed, comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of:
acquiring the name of a house type to be matched;
matching the house type name to be matched with each sample house type name in a house type name dictionary library to obtain a matching result corresponding to the house type name to be matched;
and determining the house type corresponding to the house type name to be matched according to the matching result corresponding to the house type name to be matched.
According to the computer equipment, the house type name to be matched is obtained, the house type name to be matched is matched with each sample house type name in the house type name dictionary library, the matching result corresponding to the house type name to be matched is obtained, and the house type corresponding to the house type name to be matched is determined according to the matching result corresponding to the house type name to be matched. The computer equipment determines the house type corresponding to the house type name to be matched through the house type name dictionary library, is simple and easy to implement, and directly matches the house type name to be matched with the house type name dictionary library to determine the house type compared with a method for analyzing keywords through programming, so that the deviation and the error generated when the keywords are directly extracted from the house type name to be matched for analysis are avoided, and the accuracy of house type matching can be improved.
In one embodiment, before the obtaining the house type name to be matched, the method further includes: obtaining a sample keyword set, wherein the sample keyword set comprises a plurality of sample keywords; and combining the sample keywords in the sample keyword set according to a preset combination rule to obtain the house type name dictionary library.
In one embodiment, the matching result comprises the similarity between the house type name to be matched and each sample house type name in the house type name dictionary library; the determining the house type corresponding to the house type name to be matched according to the matching result corresponding to the house type name to be matched comprises the following steps: determining the maximum similarity according to the similarity between the house type name to be matched and each sample house type name in the house type name dictionary library; if the maximum similarity is larger than the preset similarity, determining the house type name of the sample corresponding to the maximum similarity; and determining the house type corresponding to the house type name to be matched according to the sample house type name corresponding to the maximum similarity.
In one embodiment, the method further comprises: and if the maximum similarity is smaller than the preset similarity, generating reminding information.
In one embodiment, after the generating the reminder information, the method further includes: determining keywords in the house type name to be matched; and updating the house type name dictionary base according to the keywords in the house type names to be matched to obtain an updated house type name dictionary base.
In one embodiment, the determining the house type corresponding to the house type name to be matched according to the matching result corresponding to the house type name to be matched includes: determining keywords in the house type name to be matched according to a matching result corresponding to the house type name to be matched; and determining the house type corresponding to the house type name to be matched according to the keyword in the house type name to be matched.
In one embodiment, the house type names to be matched comprise a first house type name to be matched and a second house type name to be matched; determining the keywords in the house type name to be matched according to the matching result corresponding to the house type name to be matched, wherein the determining comprises the following steps: determining a first keyword in the house type name to be matched according to a matching result corresponding to the house type name to be matched, and determining a second keyword in the house type name to be matched according to a matching result corresponding to the house type name to be matched; the method further comprises the following steps: and determining whether to associate the first house type name to be matched with the second house type name to be matched according to the first keyword and the second keyword.
In one embodiment, a computer-readable storage medium is proposed, in which a computer program is stored which, when executed by a processor, causes the processor to carry out the steps of:
acquiring the name of a house type to be matched;
matching the house type name to be matched with each sample house type name in a house type name dictionary library to obtain a matching result corresponding to the house type name to be matched;
and determining the house type corresponding to the house type name to be matched according to the matching result corresponding to the house type name to be matched.
According to the computer-readable storage medium, the house type name to be matched is obtained, the house type name to be matched is matched with each sample house type name in the house type name dictionary library, a matching result corresponding to the house type name to be matched is obtained, and the house type corresponding to the house type name to be matched is determined according to the matching result corresponding to the house type name to be matched. The computer readable storage medium determines the house type corresponding to the house type name to be matched through the house type name dictionary library, is simple and easy to implement, and directly matches the house type name to be matched with the house type name dictionary library to determine the house type compared with a method for analyzing keywords through programming, so that the deviation and the error generated when the keywords are directly extracted from the house type name to be matched for analysis are avoided, and the accuracy of house type matching can be improved.
In one embodiment, before the obtaining the house type name to be matched, the method further includes: obtaining a sample keyword set, wherein the sample keyword set comprises a plurality of sample keywords; and combining the sample keywords in the sample keyword set according to a preset combination rule to obtain the house type name dictionary library.
In one embodiment, the matching result comprises the similarity between the house type name to be matched and each sample house type name in the house type name dictionary library; the determining the house type corresponding to the house type name to be matched according to the matching result corresponding to the house type name to be matched comprises the following steps: determining the maximum similarity according to the similarity between the house type name to be matched and each sample house type name in the house type name dictionary library; if the maximum similarity is larger than the preset similarity, determining the house type name of the sample corresponding to the maximum similarity; and determining the house type corresponding to the house type name to be matched according to the sample house type name corresponding to the maximum similarity.
In one embodiment, the method further comprises: and if the maximum similarity is smaller than the preset similarity, generating reminding information.
In one embodiment, after the generating the reminder information, the method further includes: determining keywords in the house type name to be matched; and updating the house type name dictionary base according to the keywords in the house type names to be matched to obtain an updated house type name dictionary base.
In one embodiment, the determining the house type corresponding to the house type name to be matched according to the matching result corresponding to the house type name to be matched includes: determining keywords in the house type name to be matched according to a matching result corresponding to the house type name to be matched; and determining the house type corresponding to the house type name to be matched according to the keyword in the house type name to be matched.
In one embodiment, the house type names to be matched comprise a first house type name to be matched and a second house type name to be matched; determining the keywords in the house type name to be matched according to the matching result corresponding to the house type name to be matched, wherein the determining comprises the following steps: determining a first keyword in the house type name to be matched according to a matching result corresponding to the house type name to be matched, and determining a second keyword in the house type name to be matched according to a matching result corresponding to the house type name to be matched; the method further comprises the following steps: and determining whether to associate the first house type name to be matched with the second house type name to be matched according to the first keyword and the second keyword.
It should be noted that the method for determining a house type, the apparatus for determining a house type, the computer device and the computer readable storage medium described above belong to a general inventive concept, and the contents in the embodiments of the method for determining a house type, the apparatus for determining a house type, the computer device and the computer readable storage medium are mutually applicable.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for determining a house type, the method comprising:
acquiring the name of a house type to be matched;
matching the house type name to be matched with each sample house type name in a house type name dictionary library to obtain a matching result corresponding to the house type name to be matched;
and determining the house type corresponding to the house type name to be matched according to the matching result corresponding to the house type name to be matched.
2. The method according to claim 1, wherein before the obtaining the house type name to be matched, further comprising:
obtaining a sample keyword set, wherein the sample keyword set comprises a plurality of sample keywords;
and combining the sample keywords in the sample keyword set according to a preset combination rule to obtain the house type name dictionary library.
3. The method according to claim 2, wherein the matching result comprises similarity between the house type name to be matched and each sample house type name in the house type name dictionary library;
the determining the house type corresponding to the house type name to be matched according to the matching result corresponding to the house type name to be matched comprises the following steps:
determining the maximum similarity according to the similarity between the house type name to be matched and each sample house type name in the house type name dictionary library;
if the maximum similarity is larger than the preset similarity, determining the house type name of the sample corresponding to the maximum similarity;
and determining the house type corresponding to the house type name to be matched according to the sample house type name corresponding to the maximum similarity.
4. The method of claim 3, further comprising:
and if the maximum similarity is smaller than the preset similarity, generating reminding information.
5. The method of claim 4, further comprising, after the generating the reminder information:
determining keywords in the house type name to be matched;
and updating the house type name dictionary base according to the keywords in the house type names to be matched to obtain an updated house type name dictionary base.
6. The method according to claim 1, wherein the determining the house type corresponding to the house type name to be matched according to the matching result corresponding to the house type name to be matched comprises:
determining keywords in the house type name to be matched according to a matching result corresponding to the house type name to be matched;
and determining the house type corresponding to the house type name to be matched according to the keyword in the house type name to be matched.
7. The method according to claim 6, wherein the house type name to be matched comprises a first house type name to be matched and a second house type name to be matched;
determining the keywords in the house type name to be matched according to the matching result corresponding to the house type name to be matched, wherein the determining comprises the following steps:
determining a first keyword in the house type name to be matched according to a matching result corresponding to the house type name to be matched, and determining a second keyword in the house type name to be matched according to a matching result corresponding to the house type name to be matched;
the method further comprises the following steps:
and determining whether to associate the first house type name to be matched with the second house type name to be matched according to the first keyword and the second keyword.
8. An apparatus for determining a house type, the apparatus comprising:
the acquisition module is used for acquiring the name of the house type to be matched;
the matching module is used for matching the house type name to be matched with each sample house type name in the house type name dictionary library to obtain a matching result corresponding to the house type name to be matched;
and the determining module is used for determining the house type corresponding to the house type name to be matched according to the matching result corresponding to the house type name to be matched.
9. A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to carry out the steps of the method of determining a house type according to any one of claims 1 to 7.
10. A computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to carry out the steps of the method of determining a house type according to any one of claims 1 to 7.
CN202010080721.3A 2020-02-05 2020-02-05 Method and device for determining house type, computer equipment and storage medium Active CN111340580B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010080721.3A CN111340580B (en) 2020-02-05 2020-02-05 Method and device for determining house type, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010080721.3A CN111340580B (en) 2020-02-05 2020-02-05 Method and device for determining house type, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111340580A true CN111340580A (en) 2020-06-26
CN111340580B CN111340580B (en) 2021-05-25

Family

ID=71183862

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010080721.3A Active CN111340580B (en) 2020-02-05 2020-02-05 Method and device for determining house type, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111340580B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112232131A (en) * 2020-09-18 2021-01-15 云南省设计院集团有限公司 Method and system for automatically extracting house type characteristic indexes based on computer vision

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140149258A1 (en) * 2012-11-29 2014-05-29 Joyce Ann Fyfe Systems, methods and apparatuses for aggregating and displaying content
CN104778171A (en) * 2014-01-10 2015-07-15 携程计算机技术(上海)有限公司 Character string matching system and method
CN108733665A (en) * 2017-04-13 2018-11-02 艺龙网信息技术(北京)有限公司 The sight spot information matching process and device of feature based and semanteme
CN109344397A (en) * 2018-09-03 2019-02-15 东软集团股份有限公司 The extracting method and device of text feature word, storage medium and program product
CN109977131A (en) * 2019-04-03 2019-07-05 深圳市前海喜越科技有限公司 A kind of house type matching system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140149258A1 (en) * 2012-11-29 2014-05-29 Joyce Ann Fyfe Systems, methods and apparatuses for aggregating and displaying content
CN104778171A (en) * 2014-01-10 2015-07-15 携程计算机技术(上海)有限公司 Character string matching system and method
CN108733665A (en) * 2017-04-13 2018-11-02 艺龙网信息技术(北京)有限公司 The sight spot information matching process and device of feature based and semanteme
CN109344397A (en) * 2018-09-03 2019-02-15 东软集团股份有限公司 The extracting method and device of text feature word, storage medium and program product
CN109977131A (en) * 2019-04-03 2019-07-05 深圳市前海喜越科技有限公司 A kind of house type matching system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
田荟钰: "浅析基于大数据技术的房地产信息系统", 《中国新通信》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112232131A (en) * 2020-09-18 2021-01-15 云南省设计院集团有限公司 Method and system for automatically extracting house type characteristic indexes based on computer vision

Also Published As

Publication number Publication date
CN111340580B (en) 2021-05-25

Similar Documents

Publication Publication Date Title
WO2020057022A1 (en) Associative recommendation method and apparatus, computer device, and storage medium
WO2022142613A1 (en) Training corpus expansion method and apparatus, and intent recognition model training method and apparatus
CN112416778A (en) Test case recommendation method and device and electronic equipment
CN112286934A (en) Database table importing method, device, equipment and medium
CN112559526A (en) Data table export method and device, computer equipment and storage medium
CN115062016A (en) Incidence relation extraction method and device and computer equipment
CN111340580B (en) Method and device for determining house type, computer equipment and storage medium
CN109086386B (en) Data processing method, device, computer equipment and storage medium
CN111382570B (en) Text entity recognition method, device, computer equipment and storage medium
CN107943881B (en) Question bank generating method, server and computer readable storage medium
CN111552810B (en) Entity extraction and classification method, entity extraction and classification device, computer equipment and storage medium
CN111078564B (en) UI test case management method, device, computer equipment and computer readable storage medium
CN110597977B (en) Data processing method, data processing device, computer equipment and storage medium
CN108986786B (en) Voice interaction equipment rating method, system, computer equipment and storage medium
WO2020057023A1 (en) Natural-language semantic parsing method, apparatus, computer device, and storage medium
CN114003685B (en) Word segmentation position index construction method and device, and document retrieval method and device
CN110781310A (en) Target concept graph construction method and device, computer equipment and storage medium
CN109410069A (en) Settlement data processing method, device, computer equipment and storage medium
CN114461606A (en) Data storage method and device, computer equipment and storage medium
CN112016297B (en) Intention recognition model testing method and device, computer equipment and storage medium
CN114881761A (en) Determination method of similar sample and determination method of credit limit
CN114169331A (en) Address resolution method, device, computer equipment and storage medium
WO2020133291A1 (en) Text entity recognition method and apparatus, computer device, and storage medium
CN116049447B (en) Entity linking system based on knowledge base
CN109657137B (en) Public opinion news classification model construction method, device, computer equipment and storage medium

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
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Method, device, computer equipment, and storage medium for determining room type

Granted publication date: 20210525

Pledgee: Huaxia Bank Co.,Ltd. Shenzhen Branch

Pledgor: Shenzhen Road Tourism Technology Co.,Ltd.

Registration number: Y2024980004336

PE01 Entry into force of the registration of the contract for pledge of patent right