CN113535922B - Size information determining method and device - Google Patents

Size information determining method and device Download PDF

Info

Publication number
CN113535922B
CN113535922B CN202110831188.4A CN202110831188A CN113535922B CN 113535922 B CN113535922 B CN 113535922B CN 202110831188 A CN202110831188 A CN 202110831188A CN 113535922 B CN113535922 B CN 113535922B
Authority
CN
China
Prior art keywords
target
determining
matching
size
target user
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
CN202110831188.4A
Other languages
Chinese (zh)
Other versions
CN113535922A (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.)
Vipshop Guangzhou Software Co Ltd
Original Assignee
Vipshop Guangzhou Software 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 Vipshop Guangzhou Software Co Ltd filed Critical Vipshop Guangzhou Software Co Ltd
Priority to CN202110831188.4A priority Critical patent/CN113535922B/en
Publication of CN113535922A publication Critical patent/CN113535922A/en
Application granted granted Critical
Publication of CN113535922B publication Critical patent/CN113535922B/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/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3329Natural language query formulation or dialogue systems
    • 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/3331Query processing
    • G06F16/3332Query translation
    • G06F16/3334Selection or weighting of terms from queries, including natural language queries
    • 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/3331Query processing
    • G06F16/334Query execution
    • G06F16/3343Query execution using phonetics
    • 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/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Mathematical Physics (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Artificial Intelligence (AREA)
  • Acoustics & Sound (AREA)
  • General Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a size information determining method, which comprises the steps of extracting target words matched with preset keywords and numerical character strings from size query information sent by an obtained target user, combining each target word with each numerical character string to obtain a plurality of different matching sets, calculating the matching degree of the matching sets according to the positions of each group of combinations in the size query information in each matching set, determining the target matching set with the largest matching degree in various different matching sets, and determining the first size information of the target user based on the combination in the target matching sets. According to the method, the extracted target words and numerical character strings are combined with each other to obtain different matching sets, the corresponding matching degree is calculated for each matching set, the target matching set is determined according to the matching degree, and therefore size information of a target user is obtained.

Description

Size information determining method and device
Technical Field
The present disclosure relates to the field of information processing, and in particular, to a size information determining method and apparatus.
Background
With the rapid development of the internet, online shopping gradually becomes a common shopping mode for people, and the convenience of online shopping and the diversity of commodities enable most people to purchase the commodities needed by themselves through the internet. For example, when a user needs to purchase a garment, it may take a day to shop through the whole mall to purchase the garment online, and through online purchase, the user may select his/her favorite garment from various stores without going out.
However, online shopping brings convenience to users, and also brings disadvantages, for example, when users purchase clothes online, the users cannot accurately judge whether the clothes fit or not because the users cannot try on the clothes. So to avoid unsuitable clothing, customer service is generally sought to provide purchase comments according to the situation. However, since the content included in the information provided by the user is relatively random, it is still a problem that how to determine the size information from the information provided by the user is always focused on because it takes a lot of time to manually analyze the information provided by the user to determine the size information of the user.
Disclosure of Invention
In view of this, the present application provides a size information determining method and apparatus, so as to determine size information from information provided by a user.
In order to achieve the above object, the following solutions have been proposed:
a size information determining method, comprising:
acquiring size query information sent by a target user;
extracting target words matched with predefined keywords and numerical character strings from size query information sent by the target user, wherein the keywords are words representing physical parameters of the user;
combining each target word with each numerical character string to obtain a plurality of different matching sets, wherein each matching set comprises at least one group of combination of the target word and the numerical character string;
for each matching set, calculating the matching degree of the matching set according to the positions of the groups of combinations in the matching set in the size query information;
among various matching sets, determining a target matching set with the largest matching degree;
and determining first size information of the target user based on the target matching set.
Optionally, for each matching set, calculating the matching degree of the matching set according to the positions of the groups of combinations in the matching set in the size query information, including:
determining a distance value of each group of combinations according to the position of each group of combinations in the matching set in the size query information aiming at each matching set;
and calculating the matching degree of the matching set based on the distance values of the groups of combinations.
Optionally, determining, based on the target matching set, first size information of the target user includes:
determining a physical parameter value of a target user based on the target matching set;
judging whether the body parameter value accords with a preset numerical rule or not;
if yes, determining first size information of the target user according to the body parameter value.
Optionally, determining the physical parameter value of the target user based on the target matching set includes:
converting a numerical value type character string in the same combination with the target word into a numerical value of a standard measurement unit according to a preset standard measurement unit corresponding to the target word in the target matching set;
and taking the converted numerical value as the physical parameter value of the target user.
Optionally, before extracting the target word matched with the predefined keyword and the numerical character string, the method further comprises:
judging whether the size query information sent by the target user is a question;
if yes, the steps of extracting target words and numerical character strings which are matched with the predefined keywords in the information sent by the target user from the size query information sent by the target user are executed.
Optionally, the method further comprises:
determining a measurement unit word and a neighbor numerical word in size query information sent by the target user;
determining a physical parameter value of the target user based on the metric unit word and the adjacent numerical word thereof;
judging whether the body parameter value accords with a preset numerical rule or not;
if yes, determining second size information of the target user according to the body parameter value;
after the first size information is obtained, judging whether the first size information is consistent with the second size information;
if not, determining the second size information as final size information.
Optionally, determining the physical parameter value of the target user based on the unit of measure word and the adjacent numerical word thereof includes:
determining a standard measurement unit corresponding to the measurement unit word;
converting the adjacent numerical word into a numerical value of a standard measurement unit;
and taking the converted numerical value as the physical parameter value of the target user.
A size information determining apparatus comprising:
the query information acquisition module is used for acquiring size query information sent by the target user;
the information extraction module is used for extracting target words matched with predefined keywords and numerical character strings from size query information sent by the target user, wherein the keywords are words representing physical parameters of the user;
the set acquisition module is used for mutually combining each target word with each numerical character string to obtain a plurality of different matching sets, wherein each matching set comprises at least one group of combinations of the target word and the numerical character string;
the matching degree calculation module is used for calculating the matching degree of each matching set according to the positions of the groups of combinations in the matching sets in the size query information;
the target set determining module is used for determining a target matching set with the largest matching degree in various matching sets;
and the size information determining module is used for determining the first size information of the target user based on the combination in the target matching set.
Optionally, the method further comprises:
the question judging module is used for judging whether the information sent by the target user is a question;
if yes, returning to the information extraction module, and executing the steps of extracting target words matched with the predefined keywords and numerical character strings in the information sent by the target user from the size query information sent by the target user.
Optionally, the method further comprises:
the word determining module is used for determining the measurement unit words and the adjacent numerical words in the size query information sent by the target user;
the body parameter value determining module is used for determining the body parameter value of the target user based on the measurement unit words and the adjacent numerical words thereof;
the numerical rule judging module is used for judging whether the body parameter value accords with a preset numerical rule, if so, determining second size information of the target user according to the body parameter value;
the final size determining module is used for judging whether the first size information is consistent with the second size information after the first size information is obtained by the size information determining module, and if not, determining that the second size information is final size information.
As can be seen from the above technical solution, in the size information determining method provided in the embodiments of the present application, through extracting, from size query information sent by an obtained target user, a target word matched with a preset keyword and a numeric character string, and then combining each target word with each numeric character string to obtain several different matching sets, where each matching set includes at least one group of combinations of target words and numeric character strings, for each matching set, according to a position of each group of combinations in the size query information in the matching set, a matching degree of the matching set is calculated, in each different matching set, a target matching set with the largest matching degree is determined, and based on a combination in the target matching set, first size information of the target user is determined. According to the method, the extracted target words and numerical character strings are combined with each other to obtain different matching sets, the corresponding matching degree is calculated for each matching set, the target matching set is determined according to the matching degree, and therefore size information of a target user is obtained.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings may be obtained according to the provided drawings without inventive effort to a person skilled in the art.
FIG. 1 is a schematic diagram of an implementation environment architecture according to an embodiment of the present application;
fig. 2 is a flowchart of a size information determining method according to an embodiment of the present application;
FIG. 3 is a flowchart of a method for calculating matching degree according to an embodiment of the present application;
fig. 4 is a schematic view of an application scenario provided in an embodiment of the present application;
FIG. 5 is a flowchart of another size information determining method according to an embodiment of the present application;
fig. 6 is a flowchart of an information extraction method provided in an embodiment of the present application;
FIG. 7 is a flowchart of another size information determining method according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a size information determining device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The embodiment of the application provides a size information determining method, which comprises the steps of mutually combining each extracted target word and each numerical character string to obtain different matching sets, calculating the corresponding matching degree for each matching set, and determining the target matching set according to the matching degree, so that the size information of a target user is obtained.
Referring to fig. 1, fig. 1 is a schematic view of an implementation environment architecture of an example of the present application, including: a target user terminal 10 and a server 20.
The target user terminal 10 may be a PC, a mobile phone, a tablet, a notebook, or other intelligent electronic devices. Which may be connected to the server 20 by means of a wired or wireless network.
The server 20 may be a server, a server group comprising several servers, or a cloud computing service center.
According to the embodiment of the application, the server 20 can acquire the size query information sent by the target user through the target user terminal 10, obtain a plurality of different matching sets in a mutually combined mode by utilizing the target words and the numerical character strings in the size query information, calculate the matching degree of each matching set according to the positions of each group of combinations in the size query information in the matching sets, and determine the target matching set by utilizing the matching degree, so that the size information of the target user is obtained.
Next, a size information determining method of the present application will be described with respect to the server 20, as shown in fig. 2, fig. 2 shows a flowchart of a size information determining method provided in an embodiment of the present application, where the method may include the following steps:
step S100, acquiring size query information sent by a target user.
Specifically, the size query information in this step may be text information or voice information. The target user can send size query information through intelligent electronic equipment such as a PC (personal computer), a mobile phone, a tablet, a notebook and the like.
Step S101, extracting target words matched with predefined keywords and numerical character strings from size query information sent by a target user.
Wherein the keywords in this step may be words characterizing the physical parameters of the user.
Specifically, the words representing the physical parameters of the user may be preset as keywords, and the words representing the physical parameters of the user may be words related to the physical parameters of the user, such as height, weight, shoulder width, waistline, and the like.
For example, the size query information sent by the target user is "what size should be bought is me height 170, weight 60? ". Since the height and the weight are determined to be keywords in advance, the target words matched with the height and the weight can be extracted from the size query information sent by the target user, namely, two target words of the height and the weight are extracted, and numerical character strings, namely, 170 and 60 are extracted, so that the extraction of the target words and the numerical character strings is completed.
Step S102, combining each target word with the numerical character string to obtain a plurality of different matching sets.
Wherein each matching set includes a combination of at least one set of target words and numeric strings.
Specifically, by combining each target word and each numerical character string obtained in the above steps with each other, several different matching sets can be obtained.
For example, the target words "height" and "weight" and the numerical character strings "170" and "60" are extracted from the size query information sent by the target user, and each target word and each numerical character string are combined with each other, so that two matching sets, namely the matching set 1: { (height, 170), (weight, 60) } and match set 2: { (height, 60), (weight, 170) }. Wherein, in match set 1, comprising combination 1 (height, 170) and combination 2 (weight, 60); in match set 2, combination 1 (height, 60) and combination 2 (weight, 170) are included.
Step S103, calculating the matching degree of each matching set according to the positions of the groups of combinations in the matching set in the size query information.
Specifically, through the steps, a plurality of different matching sets can be obtained, and each matching set comprises at least one group of combinations of target words and numerical character strings. According to the positions of the groups of combinations in each matching set in the size query information, the matching degree of the matching set can be calculated.
Step S104, determining a target matching set with the largest matching degree from various matching sets.
Specifically, in the above steps, the matching degrees of a plurality of different matching sets can be calculated, and the matching set with the largest matching degree is determined from the obtained matching sets to be used as the target matching set.
The process of determining the target matching set with the largest matching degree can be to randomly select the matching set to perform matching degree calculation, after calculating the matching degrees of all the matching sets, sorting all the matching sets according to the matching degree, and then selecting the matching set with the largest matching degree as the target matching set according to the sequence; and the matching degree calculation can be carried out by randomly selecting a matching set, the calculated matching degree of the first matching set is stored as a candidate matching set, the matching degree of the next matching set is calculated, if the matching degree of the next matching set is larger than that of the candidate matching set, the next matching set is used as the candidate matching set, and after the matching degrees of all the matching sets are calculated, the obtained candidate matching set is the target matching set.
Step S105, determining first size information of the target user based on the target matching set.
Specifically, the target matching set includes at least one group of combinations of target words and numeric character strings, and at this time, each combination of the target words and numeric character strings in the target matching set can determine a physical parameter and a corresponding parameter value of the target user, thereby determining first size information of the target user.
As can be seen from the above technical solution, in the size information determining method provided in the embodiments of the present application, through extracting, from size query information sent by an obtained target user, a target word matched with a preset keyword and a numeric character string, and then combining each target word with each numeric character string to obtain several different matching sets, where each matching set includes at least one group of combinations of target words and numeric character strings, for each matching set, according to a position of each group of combinations in the size query information in the matching set, a matching degree of the matching set is calculated, in each different matching set, a target matching set with the largest matching degree is determined, and based on a combination in the target matching set, first size information of the target user is determined. According to the method, the extracted target words and numerical character strings can be combined with each other to obtain different matching sets, the corresponding matching degree is calculated for each matching set, the target matching set is determined according to the matching degree, and therefore size information of a target user is obtained.
In some embodiments of the present application, the process of calculating the matching degree of the matching set according to the positions of the groups of combinations in the matching set in the size query information for each matching set in step S103 is described.
As shown in fig. 3, fig. 3 is a flowchart of a method for calculating matching degree according to an embodiment of the present application, where the method may include the following steps:
step 200, determining a distance value of each group of combinations according to the position of each group of combinations in the matching set in the size query information for each matching set.
Specifically, according to the target word and the numeric character string in each group of combinations, the distance value between the target word and the numeric character string in the combination can be determined as the distance value of the combination according to the position of the target word and the numeric character string in the size query information sent by the target user.
In the calculation of the distance value, the distance between the determined target word and the character string of the numerical value and the word adjacent to each other can be 1. Such as "what size is required to purchase" my height 170, weight 60? In the "step, assuming that the target word" height "and the numeric string" 170 "are in the same combination, the target word" height "and the numeric string" 170 "can be regarded as an overall calculated distance value, and the calculated distance value of the target word" height "and the numeric string" 170 "can be 1.
Step S201, calculating the matching degree of the matching set based on the distance values of the groups.
Specifically, the distance values of the groups of combinations in each matching set can be obtained by calculation through the steps, and the sum of the distance values of the groups of combinations in each matching set can be obtained by calculation by using the calculated distance values of the groups of combinations, and at the moment, the reciprocal of the sum of the distance values of the groups of combinations in each matching set can be used as the matching degree of the matching set, so that the matching degree of each matching set is obtained.
Next, the size determining method of the present application will be described through a practical application scenario.
Referring to fig. 4, an implementation scenario of the sizing method of the present application is illustrated.
And the target user utilizes the target user terminal to communicate information with the server. Assuming that the target user nickname is called a plum xx, the server nickname is called a customer service.
As shown in fig. 4, in the communication process, the target user li xx sends a message to the customer service by using the target user mobile terminal: "what size must be purchased is my height 170, weight 60? ".
Upon receiving the message from the target user, the message is uploaded to the server 20 as size query information. The server 20 queries the information "what size is needed to purchase" about my height 170, weight 60 according to the acquired size? According to the pre-stored keywords such as height and weight, the height and the weight in the size inquiry information are extracted as target words, and the numerical character strings 170 and 60 in the size inquiry information are extracted.
Combining each target word and each numerical character string with each other to obtain two matching sets, namely a matching set 1: { (height, 170), (weight, 60) } and match set 2: { (height, 60), (weight, 170) }.
For the matching set 1 and the matching set 2, determining the combination 1 in the matching set 1 according to the positions of the combinations of the groups in the matching set in the size query information: distance value (height, 170) is 1, combination 2: the distance value (body weight, 60) is 1; combination 1 in match set 2: distance value (height, 60) is 3, combination 2: the distance value (body weight, 170) was 1.
By adding the distance values of the combination 1 and the combination 2 in the matching set 1, the sum of the distance values of the combinations in the matching set 1 is 2; and adding the distance values of the combination 1 and the combination 2 in the matching combination 2 to obtain the sum of the distance values of the combinations in the matching set 2 to be 4.
At this time, the reciprocal of the sum of the distance values of the respective groups in the matching set 1 may be 0.5 as the matching degree of the matching set 1; the reciprocal of the sum of the distance values of the groups in the matching set 2 is 0.25, which is taken as the matching degree of the matching set 2.
Since the matching degree of the matching set 1 is greater than that of the matching set 2, the matching set 1 can be determined as the target matching set, so that the height of the target user is 170, the weight is 60, and the size information of the target user is determined. The size information of the target user can be determined through a pre-stored size information comparison table, for example, the heights 165-170 and the weights 55-60, and the corresponding size is L.
The server determines the corresponding size of the target user through the size query information of the target user, and then sends the determined size information to the target user terminal.
In some embodiments of the present application, a process of determining the first size information of the target user based on the target matching set in step S105 is described.
Referring to fig. 5, fig. 5 is a flowchart of another size information determining method according to an embodiment of the present application, where the method includes the following steps:
step S300, determining the physical parameter value of the target user based on the target matching set.
Specifically, after the target matching set is determined, the physical parameter value of the target user may be determined according to the target word and the numeric string in each group of combinations included in the target matching set.
For example, a target match set is determined: after { (height, 170) }, the height of the target user can be determined to be 170 based on the target word "height" and the numerical string "170" in combination 1 (height, 170) in the target match set.
Step S301, judging whether the body parameter value accords with a preset numerical rule.
Specifically, after the body parameter value of the target user is determined, a preset numerical rule is selected according to the body parameter corresponding to the body parameter value, and then whether the body parameter value meets the preset numerical rule is judged, if yes, step S302 is executed.
Step S302, determining first size information of the target user according to the body parameter value.
In the above embodiment, the body parameter value of the target user is determined by means of a preset numerical rule, so that the body parameter value which does not conform to the preset numerical rule is excluded, and the first size information of the target user is determined more accurately later.
In some embodiments of the present application, a process of determining a physical parameter value of a target user based on a target matching set in step S300 is described.
As shown in fig. 6, fig. 6 is a flowchart of a method for determining a physical parameter value of a target user according to an embodiment of the present application, where the method includes the following steps:
step 400, converting the numerical character strings in the same combination with the target words into numerical values of standard measurement units according to the preset standard measurement units corresponding to the target words in the target matching set.
Specifically, a preset standard measurement unit corresponding to a target word can be determined according to the target word in the target matching set, and a numerical character string in the same combination with the target word is converted into a numerical value of the standard measurement unit according to the preset standard measurement unit.
For example, a target matching set { (height, one seventh) }, a standard measurement unit "cm" corresponding to "height" is determined from the target word "height" in the target matching set, and a numerical value character string "one seventh" in the same combination as the target word "height" is converted into a numerical value "170" of the standard measurement unit.
Step S401, the converted numerical value is used as a physical parameter value of a target user.
Through the embodiment, the numeric character string can be converted into the numeric value of the standard measurement unit, and the converted numeric value is used as the physical parameter value of the target user, so that whether the physical parameter value of the target user accords with the preset numeric rule can be conveniently judged.
In the above embodiment, the server processes each piece of information sent by the target user, which may make the amount of data processed too large and increase the workload of the server. Therefore, in some embodiments of the present application, the step of determining the size query information sent by the target user may be added, for example, it may be determined whether the size query information is a question, if yes, step S101 is performed, and the step of extracting the target word and the numeric character string matched with the predefined keyword from the size query information sent by the target user.
Through the scheme, the judging step of the size query information is added, the subsequent processing can be carried out only on the size query information meeting the judging requirement, and the data processing capacity of the server is reduced.
In some cases, the size query information sent by the target user may include unit words, such as cm, kg, rice, kg, etc. The relevant body parameters and corresponding parameter values of the target user can be determined by using the metric unit words, so that the size information of the target user is determined. Referring now to the drawings, another alternative size determining method is described, as shown in fig. 7, and fig. 7 is a flowchart of another size information determining method according to an embodiment of the present application, where the method may include the following steps:
and S500, acquiring size query information sent by the target user.
Step S501, extracting target words matched with predefined keywords and numerical character strings from size query information sent by a target user.
Step S502, combining each target word with the numerical character string to obtain a plurality of different matching sets.
Step S503, for each matching set, calculating the matching degree of the matching set according to the positions of the groups of combinations in the matching set in the size query information.
Step S504, determining a target matching set with the largest matching degree from various matching sets.
Step S505, determining first size information of the target user based on the target matching set.
The steps S500 to S505 correspond to the steps S100 to S105 in the foregoing embodiments, and the detailed description is referred to above, which is not repeated here.
Step S506, determining the unit words and the adjacent numerical words in the size query information sent by the target user.
Specifically, the unit of measure word, such as cm, kg, cm, m, kg, etc., may be determined from the size query information sent by the target user. And determining adjacent numerical words of the measurement unit words, and extracting the numerical words adjacent to the measurement unit words by adopting a regular expression.
For example, a size query sent by the target user is "what size i am about to buy? The measurement unit word "meter" can be determined at this time, and the numerical word "one seven" can be extracted according to the measurement unit word "meter"; or what size is the size query information "what size is to be purchased for 170 cm? ", at this time, the unit words of measurement may be determined as" cm ", and the numerical word" 170 "may be extracted from the unit words of measurement" cm ".
Step S507, determining the physical parameter value of the target user based on the measurement unit words and the adjacent numerical words thereof.
Specifically, the corresponding body parameters can be queried through the determined measurement unit words, and then the body parameter values of the target user are determined by utilizing the numerical value words adjacent to the measurement unit words; and determining a standard measurement unit corresponding to the measurement unit word, converting the adjacent numerical word into a numerical value of the standard measurement unit, and taking the converted numerical value as a physical parameter value of the target user.
Step S508, judging whether the body parameter value accords with a preset numerical rule.
Specifically, according to the body parameter value, a preset numerical rule may be obtained, and then it is determined whether the body parameter value meets the preset numerical rule, if so, step S509 is executed
Step S509, determining second size information of the target user according to the body parameter value.
Step S510, judging whether the first size information and the second size information are consistent.
Specifically, through the above steps, the first size information and the second size information may be obtained, and then it is determined whether the first size information and the second size information are consistent, and if not, step S511 is performed.
Step S511, determining the second size information as final size information.
In the above embodiment, from the size query information of the target user, the physical parameter value of the target user is determined based on the metric word and the neighboring numerical word thereof, so as to obtain the second size information, and after the first size information is obtained, whether the first size information and the second size information are consistent is determined, so as to determine the final size information, which can be more accurate to a certain extent.
The size information determining device provided in the embodiments of the present application will be described below, and the size information determining device described below and the size information determining method described above may be referred to correspondingly to each other.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a size information determining apparatus according to an embodiment of the present application, where the size information determining apparatus may include:
the query information acquisition module 200 is configured to acquire size query information sent by a target user;
the information extraction module 201 is configured to extract, from size query information sent by the target user, a target word that matches a predefined keyword, and a numeric string, where the keyword is a word that characterizes a physical parameter of the user;
the set obtaining module 202 is configured to combine each of the target words and each of the numeric strings to obtain a plurality of different matching sets, where each matching set includes a combination of at least one group of target words and numeric strings;
a matching degree calculating module 203, configured to calculate, for each matching set, a matching degree of the matching set according to a position of each group combination in the matching set in the size query information;
the target set determining module 204 is configured to determine a target matching set with the largest matching degree among various matching sets;
the size information determining module 205 is configured to determine, based on the target matching set, first size information of the target user.
According to the method, the extracted target words and numerical character strings are combined with each other to obtain different matching sets, the corresponding matching degree is calculated for each matching set, the target matching set is determined according to the matching degree, and therefore size information of a target user is obtained.
Optionally, the size information determining device may further include:
the question judging module is used for judging whether the information sent by the target user is a question;
if yes, returning to the information extraction module, and executing the steps of extracting target words matched with the predefined keywords and numerical character strings in the information sent by the target user from the size query information sent by the target user.
Optionally, the size information determining device may further include:
the word determining module is used for determining the measurement unit words and the adjacent numerical words in the size query information sent by the target user;
the body parameter value determining module is used for determining the body parameter value of the target user based on the measurement unit words and the adjacent numerical words thereof;
the numerical rule judging module is used for judging whether the body parameter value accords with a preset numerical rule, if so, determining second size information of the target user according to the body parameter value;
the final size determining module is used for judging whether the first size information is consistent with the second size information after the first size information is obtained by the size information determining module, and if not, determining that the second size information is final size information.
Optionally, the body parameter value determining module may include:
a labeling measurement unit determining unit, configured to determine a standard measurement unit corresponding to the measurement unit word;
a neighboring value conversion unit for converting the neighboring value word into a value of a standard measurement unit;
and the first parameter value determining unit is used for taking the converted numerical value as the body parameter value of the target user.
Optionally, the matching degree calculating module 203 may include:
a distance value calculation unit, configured to determine, for each matching set, a distance value of each group of combinations according to a position of each group of combinations in the matching set in the size query information;
and the matching degree calculating unit is used for calculating the matching degree of the matching set based on the distance values of the groups of combinations.
Optionally, the size information determining module 205 may include:
a body parameter value determining unit for determining a body parameter value of a target user based on the target matching set;
and the numerical rule judging unit is used for judging whether the body parameter value accords with a preset numerical rule, and if so, determining the first size information of the target user according to the body parameter value.
Optionally, the body parameter value determining unit may include:
the numerical value conversion unit is used for converting the numerical value type character strings in the same combination with the target words into numerical values of standard measurement units according to the preset standard measurement units corresponding to the target words in the target matching set;
and the second parameter value determining unit is used for taking the converted numerical value as the body parameter value of the target user.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the present specification, each embodiment is described in a progressive manner, and each embodiment focuses on the difference from other embodiments, and each embodiment may be combined with each other, and the same similar parts may be referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (9)

1. A size information determining method, comprising:
acquiring size query information sent by a target user;
extracting target words matched with predefined keywords and numerical character strings from size query information sent by the target user, wherein the keywords are words representing physical parameters of the user;
combining each target word with each numerical character string to obtain a plurality of different matching sets, wherein each matching set comprises at least one group of combination of the target word and the numerical character string;
for each matching set, calculating the matching degree of the matching set according to the positions of the groups of combinations in the matching set in the size query information; the method specifically comprises the following steps: determining a distance value of each group of combinations according to the position of each group of combinations in the matching set in the size query information aiming at each matching set; calculating the matching degree of the matching set based on the distance values of the groups of combinations;
among various matching sets, determining a target matching set with the largest matching degree;
and determining first size information of the target user based on the target matching set.
2. The method of claim 1, wherein determining the first size information for the target user based on the target match set comprises:
determining a physical parameter value of a target user based on the target matching set;
judging whether the body parameter value accords with a preset numerical rule or not;
if yes, determining first size information of the target user according to the body parameter value.
3. The method of claim 2, wherein determining the physical parameter value of the target user based on the target match set comprises:
converting a numerical value type character string in the same combination with the target word into a numerical value of a standard measurement unit according to a preset standard measurement unit corresponding to the target word in the target matching set;
and taking the converted numerical value as the physical parameter value of the target user.
4. A method according to any one of claims 1-3, further comprising, prior to extracting the target word matching the predefined keyword, and the numeric string:
judging whether the size query information sent by the target user is a question;
if yes, the steps of extracting target words and numerical character strings which are matched with the predefined keywords in the information sent by the target user from the size query information sent by the target user are executed.
5. A method according to any one of claims 1-3, further comprising:
determining a measurement unit word and a neighbor numerical word in size query information sent by the target user;
determining a physical parameter value of the target user based on the metric unit word and the adjacent numerical word thereof;
judging whether the body parameter value accords with a preset numerical rule or not;
if yes, determining second size information of the target user according to the body parameter value;
after the first size information is obtained, judging whether the first size information is consistent with the second size information;
if not, determining the second size information as final size information.
6. The method of claim 5, wherein determining the physical parameter value of the target user based on the unit of measure word and its neighboring numerical word comprises:
determining a standard measurement unit corresponding to the measurement unit word;
converting the adjacent numerical word into a numerical value of a standard measurement unit;
and taking the converted numerical value as the physical parameter value of the target user.
7. A size information determining apparatus, comprising:
the query information acquisition module is used for acquiring size query information sent by the target user;
the information extraction module is used for extracting target words matched with predefined keywords and numerical character strings from size query information sent by the target user, wherein the keywords are words representing physical parameters of the user;
the set acquisition module is used for mutually combining each target word with each numerical character string to obtain a plurality of different matching sets, wherein each matching set comprises at least one group of combinations of the target word and the numerical character string;
the matching degree calculation module is used for calculating the matching degree of each matching set according to the positions of the groups of combinations in the matching sets in the size query information; the method specifically comprises the following steps: determining a distance value of each group of combinations according to the position of each group of combinations in the matching set in the size query information aiming at each matching set; calculating the matching degree of the matching set based on the distance values of the groups of combinations;
the target set determining module is used for determining a target matching set with the largest matching degree in various matching sets;
and the size information determining module is used for determining the first size information of the target user based on the combination in the target matching set.
8. The apparatus as recited in claim 7, further comprising:
the question judging module is used for judging whether the information sent by the target user is a question;
if yes, returning to the information extraction module, and executing the steps of extracting target words matched with the predefined keywords and numerical character strings in the information sent by the target user from the size query information sent by the target user.
9. The apparatus as recited in claim 7, further comprising:
the word determining module is used for determining the measurement unit words and the adjacent numerical words in the size query information sent by the target user;
the body parameter value determining module is used for determining the body parameter value of the target user based on the measurement unit words and the adjacent numerical words thereof;
the numerical rule judging module is used for judging whether the body parameter value accords with a preset numerical rule, if so, determining second size information of the target user according to the body parameter value;
the final size determining module is used for judging whether the first size information is consistent with the second size information after the first size information is obtained by the size information determining module, and if not, determining that the second size information is final size information.
CN202110831188.4A 2021-07-22 2021-07-22 Size information determining method and device Active CN113535922B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110831188.4A CN113535922B (en) 2021-07-22 2021-07-22 Size information determining method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110831188.4A CN113535922B (en) 2021-07-22 2021-07-22 Size information determining method and device

Publications (2)

Publication Number Publication Date
CN113535922A CN113535922A (en) 2021-10-22
CN113535922B true CN113535922B (en) 2024-02-02

Family

ID=78088656

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110831188.4A Active CN113535922B (en) 2021-07-22 2021-07-22 Size information determining method and device

Country Status (1)

Country Link
CN (1) CN113535922B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016197746A1 (en) * 2015-06-10 2016-12-15 丁刚 Method for recommending product size according to user information
CN108664556A (en) * 2018-04-03 2018-10-16 南昌奇眸科技有限公司 Parallel search system and method suitable for associated mark
CN110955806A (en) * 2019-11-29 2020-04-03 国家电网有限公司客户服务中心 Character string matching method for Chinese text
CN112836032A (en) * 2021-02-07 2021-05-25 浙江理工大学 Automatic response method integrating double word segmentation and iterative feedback
CN113094559A (en) * 2021-04-25 2021-07-09 百度在线网络技术(北京)有限公司 Information matching method and device, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140281869A1 (en) * 2013-03-15 2014-09-18 Susan Yob Variable size table templates, interactive size tables, distributable size tables, and related systems and methods

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016197746A1 (en) * 2015-06-10 2016-12-15 丁刚 Method for recommending product size according to user information
CN108664556A (en) * 2018-04-03 2018-10-16 南昌奇眸科技有限公司 Parallel search system and method suitable for associated mark
CN110955806A (en) * 2019-11-29 2020-04-03 国家电网有限公司客户服务中心 Character string matching method for Chinese text
CN112836032A (en) * 2021-02-07 2021-05-25 浙江理工大学 Automatic response method integrating double word segmentation and iterative feedback
CN113094559A (en) * 2021-04-25 2021-07-09 百度在线网络技术(北京)有限公司 Information matching method and device, electronic equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于层次分析法的服装推荐专家系统;潘璐;中国优秀硕士学位论文全文数据库 信息科技辑(第05期);I138-1557 *
面向服装信息识别的数据分类框架研究;黄登镏;董珂;刘京京;黄宇辰;范浩杰;杨春蕾;;福建电脑(第08期);70-72 *

Also Published As

Publication number Publication date
CN113535922A (en) 2021-10-22

Similar Documents

Publication Publication Date Title
CN106484777B (en) Multimedia data processing method and device
CN105247507B (en) Method, system and storage medium for the influence power score for determining brand
US9569499B2 (en) Method and apparatus for recommending content on the internet by evaluating users having similar preference tendencies
CN108280115B (en) Method and device for identifying user relationship
CN103577432B (en) A kind of Commodity Information Search method and system
CN109829775A (en) A kind of item recommendation method, device, equipment and readable storage medium storing program for executing
CN104915418B (en) Recommendation of websites method and device
CN104268155A (en) Immediate mobile terminal personalized recommendation feedback and optimization method and device
CN104765793A (en) Software recommending method and server
CN110928894B (en) Entity alignment method and device
JP2009098964A (en) Network service system, server, method and program
CN105096023A (en) System and method for pushing data relevant to working standard
US20190213663A1 (en) Virtual cart optimization tool
CN109189960A (en) Information acquisition method, information acquisition device and computer storage medium
KR20190036731A (en) Service providing apparatus for shopping mall supporting size suggestion
CN112434188A (en) Data integration method and device for heterogeneous database and storage medium
CN110766166B (en) Push model optimization method and device executed by user terminal
CN111353089A (en) Information recommendation method and device, electronic equipment and computer storage medium
CN113535922B (en) Size information determining method and device
JP6009317B2 (en) Skill evaluation method and apparatus
KR20150144916A (en) system and method providing a suited shopping information by customer profiling
CN104933082B (en) Evaluation information processing method and its device
KR20210052746A (en) Method, apparatus and computer program for estimating sales volume of content to be productized
CN103227791A (en) Method and device for wireless data collection
JP6500151B1 (en) Product proposal support system

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