WO2024255714A1 - Retrieval method for numeric values within interval, storage medium, and computer - Google Patents

Retrieval method for numeric values within interval, storage medium, and computer Download PDF

Info

Publication number
WO2024255714A1
WO2024255714A1 PCT/CN2024/098256 CN2024098256W WO2024255714A1 WO 2024255714 A1 WO2024255714 A1 WO 2024255714A1 CN 2024098256 W CN2024098256 W CN 2024098256W WO 2024255714 A1 WO2024255714 A1 WO 2024255714A1
Authority
WO
WIPO (PCT)
Prior art keywords
value
interval
document
interval value
numerical
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.)
Ceased
Application number
PCT/CN2024/098256
Other languages
French (fr)
Chinese (zh)
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.)
Sekorm Eservice Co Ltd
Original Assignee
Sekorm Eservice 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 Sekorm Eservice Co Ltd filed Critical Sekorm Eservice Co Ltd
Publication of WO2024255714A1 publication Critical patent/WO2024255714A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2468Fuzzy queries
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • G06F16/243Natural language query formulation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2457Query processing with adaptation to user needs
    • G06F16/24578Query processing with adaptation to user needs using ranking
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/288Entity relationship models

Definitions

  • the present invention relates to the field of information retrieval, and more specifically, to an interval value retrieval method, a storage medium and a computer.
  • keyword search uses a "what you see is what you get" matching logic, that is, when searching, only the text that already exists in the database can be searched, and it is determined whether the keyword entered by the user matches the text that already exists in the database. For example, if the keyword entered by the user is the number "3", the number "3" must appear clearly in the database to successfully match.
  • the "what you see is what you get” keyword search matching logic of the prior art cannot realize the search for the middle value of the interval value.
  • the interval value expresses an interval segment of the value
  • the middle value refers to the value between the minimum and maximum values of the interval value.
  • the interval value is 0 to 9, and the middle value is any value between 0 and 9, such as 3.
  • the interval value 0 to 9 can only express two values, 0 and 9.
  • the prior art can only retrieve 0 and 9, and the values between 0 and 9 cannot be retrieved.
  • the keyword entered by the user is 3. Although 3 is between 0 and 9, it cannot be retrieved because 3 is not actually displayed, resulting in inaccurate search results.
  • the technical problem to be solved by the present invention is to provide an interval value retrieval method, a storage medium and a computer.
  • the technical solution adopted by the present invention to solve the technical problem is: constructing an interval value retrieval method, including establishing a value set process and a value retrieval process;
  • the establishing of the value set comprises:
  • Step a1 detecting the interval value in the document
  • Step a2 obtaining a value set corresponding to the interval value according to a preset algorithm, wherein the value set includes the middle value of the interval value;
  • Step a3 establishing a first corresponding relationship between the value set and the document
  • the numerical retrieval process includes:
  • Step b1 receiving search information, wherein the search information includes a value to be searched;
  • Step b2 searching the value to be searched in the value set
  • Step b3 If the value to be retrieved is in the value set, determine the document corresponding to the search information according to the first corresponding relationship.
  • the value set includes at least one intermediate value, and the intermediate value is greater than the minimum value of the interval value and less than the maximum value of the interval value.
  • the step a2 comprises:
  • each increase of the preset step length starts from the minimum value of the interval value, gradually increasing the value according to the preset step length until the maximum value of the interval value, each increase of the preset step length generates an intermediate value, and all the intermediate values obtained constitute the value set corresponding to the interval value;
  • the value is gradually reduced according to the preset step size until it reaches the minimum value of the interval value.
  • the preset step size is reduced, an intermediate value is generated, and all the intermediate values obtained constitute a value set corresponding to the interval value.
  • the method further includes:
  • the preset step length corresponding to the numerical unit is searched according to a second corresponding relationship, where the second corresponding relationship is a corresponding relationship between the numerical unit and the preset step length.
  • the method further includes:
  • the preset step length corresponding to the numerical unit and the product information is searched according to a third corresponding relationship, where the third corresponding relationship is a corresponding relationship between the preset step length, the numerical unit, and the product information.
  • the step a1 includes: detecting the interval value in the document and the position information of the interval value in the document;
  • the step a3 comprises: establishing a first corresponding relationship between the value set and the document, and a fourth corresponding relationship between the value set and the location information;
  • the step b3 includes: if the value to be retrieved is in the value set, determining the document corresponding to the retrieval information according to the first corresponding relationship, and determining the position of the retrieval information in the document according to the fourth corresponding relationship.
  • the step a1 includes: detecting the interval value in the document and the numerical unit corresponding to the interval value;
  • the numerical value set in step a2 includes the middle value of the interval value and the numerical value unit;
  • the search information in step b1 includes the value to be searched and the value unit;
  • the step b2 comprises: searching the value to be searched and the value unit in the value set;
  • step b3 if the value to be retrieved is included in the value set: if the value to be retrieved and the value unit are in the same value set.
  • step b3 the following steps are further included:
  • the obtained documents are sorted and displayed according to a preset sorting rule.
  • the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded by a processor to execute the steps of the interval value retrieval method as described above.
  • the present invention also provides a computer, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the steps of the above-mentioned interval value retrieval method by calling the computer program stored in the memory.
  • an interval value search method, storage medium and computer of the present invention has the following beneficial effects: the present invention realizes the search of some intermediate values of interval values by filling some intermediate values of interval values, thereby improving the accuracy of interval value search.
  • FIG1 is a flow chart of a method for retrieving interval values provided by an embodiment of the present invention.
  • FIG2 is a flow chart of a method for retrieving interval values provided by an embodiment of the present invention.
  • FIG. 3 is a flow chart of a method for retrieving interval values provided by an embodiment of the present invention.
  • the interval value retrieval method of this embodiment is applied to the retrieval field, including computer local data retrieval, server data retrieval, and cloud data retrieval, etc.
  • An interval value refers to an interval segment of a value, that is, a value range.
  • An interval value can be a numerical range containing only numbers, such as 0 to 9; or it can be a value range containing numerical units, such as 0°C (Celsius) to 9°C, 0m (meter) to 9m, 0A (ampere) to 9A, etc., where 0°C (Celsius), m (meter) and A (ampere) are numerical units.
  • the interval value retrieval method includes a process of establishing a numerical set and a numerical retrieval process, which are described separately below.
  • a value set must be established.
  • the process of establishing the value set includes the following steps:
  • Step a1 Detect interval values in the document.
  • the document of this embodiment refers to a file containing certain data, especially a file containing text, so that it can be used for text retrieval in this embodiment. It can be understood that there are many forms of file format expression, and this embodiment does not limit this. As a choice, the document includes but is not limited to word documents, TXT documents, PDF documents, EXCEL tables, PPT documents, web pages, etc.
  • Interval values usually have specific expressions, which can be represented by intermediate symbols such as "-”, “ ⁇ ”, “()”, “[]”, etc., such as interval values 0-9, 0 ⁇ 9, (0,9), [0,9] represented by intermediate symbols; they can also be expressed by text representing ranges, such as 0 to 9, from 0 to 9, etc., between 0 and 9, etc. Based on the specific expressions of interval values, these specific expressions are made into interval value models, and the interval value model is used to detect interval values matching the interval value model in the document.
  • the interval value model "number-number” if the text that conforms to the interval value model "number-number” is detected in the document, it is considered that the interval value is retrieved, for example, 0-9 conforms to the interval value model "number-number”.
  • Step a2 Obtain a value set corresponding to the interval value according to a preset algorithm, wherein the value set includes the middle value of the interval value.
  • the value set corresponding to the interval value is obtained according to the preset algorithm, each interval value corresponds to a value set, and the value set includes the intermediate value of the interval value.
  • the value set includes at least one intermediate value, and the intermediate value is greater than the minimum value of the interval value and less than the maximum value of the interval value. It can be understood that the more intermediate values a value set corresponding to a certain interval value contains, the greater the probability of being retrieved, thereby increasing the probability of the interval value being retrieved.
  • the interval values are 0 to 9, and the intermediate values can be 1, 2, 3, 4, 5, 6, 7, 8, that is, the value set corresponding to the interval values 0 to 9 is composed of the intermediate values 1, 2, 3, 4, 5, 6, 7, 8.
  • the value set does not include all values between the minimum and maximum values of the interval values, but takes as many values as possible. The more values taken, that is, the greater the density, the greater the probability of the interval value being retrieved; but the more intermediate values, the greater the corresponding data processing amount, so it is necessary to strike a balance between the number of intermediate values and the probability of being retrieved.
  • Step a3 Establish a first correspondence between the value set and the document.
  • a first correspondence between the value set and the document is established, that is, a first correspondence between the value set and the document where the corresponding interval value is located is established. If a document contains more than two interval values, the document corresponds to multiple value sets.
  • a computer or server or cloud database stores a large number of documents, retrieves the interval values in each document, and establishes a value set corresponding to each document, thereby establishing a value set corresponding to the database.
  • each middle value in the value set corresponds to the document, so that the middle value of the interval value in the document can be retrieved.
  • the value set corresponding to a certain interval value in the document is newly generated data outside the document, which does not belong to the document itself and does not need to modify the document. Instead, it is stored separately as separate data, and then the first correspondence between the value set and the document is established.
  • the value retrieval process includes the following steps:
  • Step b1 receiving search information, the search information includes the value to be searched.
  • the search information input by the user is received, and the search information includes the value to be searched, and of course, may also include other search information. It should be noted that the value to be searched is a value or a number.
  • Step b2 retrieve the value to be retrieved from the value set.
  • the value to be searched can be searched in the numerical set.
  • the interval values are 0 to 9
  • the intermediate values can be 1, 2, 3, 4, 5, 6, 7, 8, that is, the numerical set corresponding to the interval values 0 to 9 is composed of the intermediate values 1, 2, 3, 4, 5, 6, 7, 8.
  • the value to be searched input by the user is 3, the value to be searched 3 is searched in the numerical set 1, 2, 3, 4, 5, 6, 7, 8. It can be understood that the value to be searched can still be used to search for existing content in the document, and reference can be made to the prior art, which will not be repeated here.
  • Step b3 If the value to be retrieved is in the value set, determine the document corresponding to the retrieval information according to the first corresponding relationship.
  • the document corresponding to the search information is determined according to the first corresponding relationship, thereby realizing the search of the portion of the interval value that is not directly displayed.
  • the interval values are 0 to 9, and the middle values can be 1, 2, 3, 4, 5, 6, 7, 8, that is, the value set corresponding to the interval values 0 to 9 is composed of the middle values 1, 2, 3, 4, 5, 6, 7, 8. If the value to be searched input by the user is 3, the value 3 to be searched is searched in the value set 1, 2, 3, 4, 5, 6, 7, 8, and it happens to match, then the document corresponding to the value 3 to be searched can be determined.
  • This embodiment achieves retrieval of partial middle values of interval values by filling in partial middle values of interval values, thereby improving the accuracy of interval value retrieval.
  • a numerical set corresponding to the interval value is obtained according to a preset algorithm, and the numerical set includes the intermediate value of the interval value.
  • This embodiment provides a preset algorithm: starting from the minimum value of the interval value, the value is gradually increased according to the preset step length until the maximum value of the interval value, and each increase in the preset step length generates an intermediate value, and the numerical set corresponding to the interval value is composed of all the intermediate values.
  • the interval value is 0 to 9 and the preset step length is 1, then it increases by 1 each time starting from 0, and the intermediate values obtained are 1, 2, 3, 4, 5, 6, 7, 8, that is, the numerical set corresponding to the interval value 0 to 9 is composed of the intermediate values 1, 2, 3, 4, 5, 6, 7, 8.
  • a numerical set corresponding to the interval value is obtained according to a preset algorithm, and the numerical set includes the intermediate value of the interval value.
  • This embodiment provides a preset algorithm: starting from the maximum value of the interval value, the value is gradually reduced according to the preset step length until the minimum value of the interval value, and each reduction of the preset step length generates an intermediate value, and the numerical set corresponding to the interval value is composed of all the intermediate values.
  • the interval value is 0 to 9 and the preset step length is 1, then starting from 9, it is reduced by 1 each time, and the intermediate values obtained are 1, 2, 3, 4, 5, 6, 7, 8, that is, the numerical set corresponding to the interval value 0 to 9 is composed of the intermediate values 1, 2, 3, 4, 5, 6, 7, 8.
  • a process of determining a preset step length is also included: obtaining the numerical unit corresponding to the interval value, the numerical unit is usually located immediately after the interval value, and the unit immediately after the interval value can be used as the numerical unit of the interval value. For example, if the interval value is 0 to 9°C, the unit °C immediately after the interval value 0 to 9 is used as the numerical unit of the interval value. It can be understood that the positional relationship between the interval value and the numerical unit is diverse, and the numerical unit corresponding to the interval value can be determined based on other positional relationships between the interval value and the numerical unit. The principle is similar to that of the numerical unit being located immediately after the interval value, and will not be explained one by one.
  • the preset step length corresponding to the numerical unit is searched according to the second corresponding relationship.
  • the second corresponding relationship is the correspondence between the numerical unit and the preset step length.
  • the data accuracy corresponding to each numerical unit is usually fixed.
  • the accuracy corresponding to Celsius °C is usually 0.1, that is, when the user searches for a numerical value, it is usually accurate to 0.1°C.
  • the preset step length can be 0.1, and the numerical set obtained at an accuracy of 0.1 can meet the needs of most users. Therefore, the setting of the second corresponding relationship needs to be combined with the general accuracy requirements of the numerical unit in a large amount of data and the experience of the staff.
  • Each numerical unit corresponds to a preset step length.
  • This embodiment determines the preset step length according to the numerical unit corresponding to the interval value, so that the value of the preset step length is more reasonable, thereby making the value of the middle value of the interval value more reasonable, thereby increasing the accuracy of interval value retrieval.
  • a process of determining a preset step length is also included: obtaining the numerical unit corresponding to the interval value and the product information to which the document belongs, wherein the numerical unit is usually located immediately after the interval value, and the unit immediately after the interval value can be used as the numerical unit of the interval value. For example, if the interval value is 0 to 9°C, the unit °C immediately after the interval value 0 to 9 is used as the numerical unit of the interval value. It can be understood that the positional relationship between the interval value and the numerical unit is diverse, and the numerical unit corresponding to the interval value can be determined based on other positional relationships between the interval value and the numerical unit. The principle is similar to that of the numerical unit being located immediately after the interval value, and will not be explained one by one.
  • the product information to which the document belongs refers to the product information of the product defined, described or attributed by the document.
  • the product information includes but is not limited to the product name, product model, product field, product use, etc. Any information that can be used to describe the product can be used as product information.
  • the product described by the interval value can be further clarified through product information, and the preset step length can be determined more accurately. For example, if the interval value is 0 to 9mm (millimeter), if the corresponding product information is the size of the computer, the preset step length can be 1mm; if the corresponding product information is the size of the memory stick in the computer, the preset step length can be 0.1mm.
  • the preset step length corresponding to the numerical unit and product information is searched according to the third corresponding relationship, and the third corresponding relationship is the corresponding relationship between the preset step length, the numerical unit and the product information.
  • the preset step length is determined by considering both the numerical unit and the product information.
  • the preset step length is determined from the numerical unit itself and the object it describes, which can make the preset step length more reasonable. Therefore, the setting of the third corresponding relationship needs to be combined with the general accuracy requirements of the numerical unit in a large amount of data, and the accuracy requirements of the product information on the size and the experience of the staff.
  • Each numerical unit and product information corresponds to a preset step length.
  • This embodiment determines the preset step length according to the numerical unit corresponding to the interval value and the product information. Compared with determining the preset step length only according to the numerical unit, the value of the preset step length can be more reasonable, thereby making the middle value of the interval value more reasonable, thereby increasing the accuracy of interval value retrieval.
  • the interval value retrieval method of this embodiment is applied to the retrieval field, including computer local data retrieval, server data retrieval, and cloud data retrieval, etc.
  • An interval value refers to an interval segment of a value, that is, a value range.
  • An interval value can be a numerical range containing only numbers, such as 0 to 9; or it can be a value range containing numerical units, such as 0°C (degrees Celsius) to 9°C, 0m (meter) to 9m, 0A (ampere) to 9A, etc., where 0°C (degrees Celsius), m (meter) and A (ampere) are numerical units.
  • the interval value retrieval method includes a process of establishing a numerical set and a numerical retrieval process, which are described separately below.
  • a value set must be established.
  • the process of establishing the value set includes the following steps:
  • Step a11 Detect the interval values in the document and the position information of the interval values in the document.
  • the document of this embodiment refers to a file containing certain data, especially a file containing text, so that it can be used for text retrieval in this embodiment. It can be understood that there are many forms of file format expression, and this embodiment does not limit this. As a choice, the document includes but is not limited to word documents, TXT documents, PDF documents, EXCEL tables, PPT documents, web pages, etc.
  • Interval values usually have specific expressions, which can be represented by intermediate symbols such as "-”, “ ⁇ ”, “()”, “[]”, etc., such as interval values 0-9, 0 ⁇ 9, (0,9), [0,9] represented by intermediate symbols; they can also be expressed by text representing ranges, such as 0 to 9, from 0 to 9, etc., between 0 and 9, etc. Based on the specific expressions of interval values, these specific expressions are made into interval value models, and the interval value model is used to detect interval values matching the interval value model in the document.
  • the interval value model "number-number” if the text that conforms to the interval value model "number-number” is detected in the document, it is considered that the interval value is retrieved, for example, 0-9 conforms to the interval value model "number-number”.
  • the position information of the interval value in the document is obtained, and the position information is used to locate the position of the interval value in the document. For example, if the position information is line 3 on page 2, the interval value can be located on line 3 on page 2. If the document contains multiple interval values, the position information corresponding to each interval value is obtained, and a corresponding relationship between each interval value and the position information is established.
  • Step a21 obtaining a value set corresponding to the interval value according to a preset algorithm, wherein the value set includes the middle value of the interval value.
  • each interval value corresponds to a value set, and the value set includes the middle value of the interval value.
  • the value set includes at least one middle value, and the middle value is greater than the minimum value of the interval value and less than the maximum value of the interval value.
  • the middle values can be 1, 2, 3, 4, 5, 6, 7, 8, that is, the value set corresponding to the interval values 0 to 9 is composed of the middle values 1, 2, 3, 4, 5, 6, 7, 8.
  • the value set does not include all values between the minimum and maximum values of the interval values, but takes as many values as possible. The more values taken, that is, the greater the density, the greater the probability of the interval value being retrieved.
  • Step a31 establish a first corresponding relationship between the value set and the document, and a fourth corresponding relationship between the value set and the position information.
  • a first correspondence between the value set and the document is established, that is, a first correspondence between the value set and the document where the corresponding interval value is located is established. If a document contains more than two interval values, the document corresponds to multiple value sets.
  • a computer or server or cloud database stores a large number of documents, retrieves the interval values in each document, and establishes a value set corresponding to each document, thereby establishing a value set corresponding to the database.
  • each middle value in the value set corresponds to the document, so that the middle value of the interval value in the document can be retrieved.
  • the value set corresponding to a certain interval value in the document is newly generated data outside the document, which does not belong to the document itself and does not need to modify the document. Instead, it is stored separately as separate data, and then the first correspondence between the value set and the document is established.
  • this embodiment simultaneously establishes a fourth correspondence between the value set and the position information, and the specific position of the value set in the document can be determined according to the fourth correspondence.
  • the value retrieval process includes the following steps:
  • Step b11 receiving search information, where the search information includes a value to be searched.
  • the search information input by the user is received, and the search information includes the value to be searched, and of course, may also include other search information. It should be noted that the value to be searched is a value or a number.
  • Step b21 searching for the value to be searched in the value set.
  • the value to be searched can be searched in the numerical set.
  • the interval values are 0 to 9
  • the intermediate values can be 1, 2, 3, 4, 5, 6, 7, 8, that is, the numerical set corresponding to the interval values 0 to 9 is composed of the intermediate values 1, 2, 3, 4, 5, 6, 7, 8.
  • the value to be searched input by the user is 3, the value to be searched 3 is searched in the numerical set 1, 2, 3, 4, 5, 6, 7, 8. It can be understood that the value to be searched can still be used to search for existing content in the document, and reference can be made to the prior art, which will not be repeated here.
  • Step b31 If the value to be retrieved is in the value set, determine the document corresponding to the retrieval information according to the first corresponding relationship, and determine the position of the retrieval information in the document according to the fourth corresponding relationship.
  • the document corresponding to the search information is determined according to the first corresponding relationship, thereby realizing the search of the portion of the interval value that is not directly displayed.
  • the interval values are 0 to 9, and the middle values can be 1, 2, 3, 4, 5, 6, 7, 8, that is, the value set corresponding to the interval values 0 to 9 is composed of the middle values 1, 2, 3, 4, 5, 6, 7, 8. If the value to be searched input by the user is 3, the value 3 to be searched is searched in the value set 1, 2, 3, 4, 5, 6, 7, 8, and it happens to match, then the document corresponding to the value 3 to be searched can be determined.
  • the position of the search information in the document is determined according to the fourth corresponding relationship. For example, if the position information corresponding to the interval values 0 to 9 is page 2, line 3, then the interval values 0 to 9 can be located on page 2, line 3. In other words, if the value to be searched input by the user is 3, then the value to be searched 3 is searched in the value set 1, 2, 3, 4, 5, 6, 7, 8, and it happens to match, then the document corresponding to the value to be searched 3 can be determined. Further, the position information corresponding to the interval values 0 to 9 is page 2, line 3, then the interval values 0 to 9 corresponding to the value to be searched 3 are further located on page 2, line 3 of the document.
  • This embodiment achieves the retrieval of the intermediate values of the interval values by filling in the intermediate values of the interval values, thereby improving the accuracy of the interval value retrieval.
  • the position of the interval values in the document is recorded, so that the position of the interval values in the document is directly displayed in the search results, which is convenient for users to view and improves the user experience.
  • the interval value retrieval method of this embodiment is applied to the retrieval field, including computer local data retrieval, server data retrieval, and cloud data retrieval, etc.
  • An interval value refers to an interval segment of a value, that is, a value range.
  • An interval value can be a numerical range containing only numbers, such as 0 to 9; or it can be a value range containing numerical units, such as 0°C (degrees Celsius) to 9°C, 0m (meter) to 9m, 0A (ampere) to 9A, etc., where 0°C (degrees Celsius), m (meter) and A (ampere) are numerical units.
  • the interval value retrieval method includes a process of establishing a numerical set and a numerical retrieval process, which are described separately below.
  • a value set must be established.
  • the process of establishing the value set includes the following steps:
  • Step a12 Detect the interval values in the document and the numerical units corresponding to the interval values.
  • the document of this embodiment refers to a file containing certain data, especially a file containing text, so that it can be used for text retrieval in this embodiment. It can be understood that there are many forms of file format expression, and this embodiment does not limit this. As a choice, the document includes but is not limited to word documents, TXT documents, PDF documents, EXCEL tables, PPT documents, web pages, etc.
  • Interval values usually have specific expressions, which can be represented by intermediate symbols such as "-”, “ ⁇ ”, “()”, “[]”, etc., such as interval values 0-9, 0 ⁇ 9, (0,9), [0,9] represented by intermediate symbols; they can also be expressed by text representing ranges, such as 0 to 9, from 0 to 9, etc., between 0 and 9, etc. Based on the specific expressions of interval values, these specific expressions are made into interval value models, and the interval value model is used to detect interval values matching the interval value model in the document.
  • the interval value model "number-number” if the text that conforms to the interval value model "number-number” is detected in the document, it is considered that the interval value is retrieved, for example, 0-9 conforms to the interval value model "number-number”.
  • the numerical unit is usually located immediately after the interval value, and the unit immediately after the interval value can be used as the numerical unit of the interval value.
  • the unit immediately after the interval value can be used as the numerical unit of the interval value.
  • the positional relationship between the interval value and the numerical unit is diverse, and the numerical unit corresponding to the interval value can be determined according to other positional relationships between the interval value and the numerical unit. The principle is similar to that of the numerical unit being located immediately after the interval value, and will not be explained one by one.
  • Step a22 Obtain a numerical value set corresponding to the interval numerical value according to a preset algorithm, wherein the numerical value set includes the middle value and numerical unit of the interval numerical value.
  • the value set corresponding to the interval value is obtained according to the preset algorithm.
  • Each interval value corresponds to a value set, and the value set includes the intermediate value and the numerical unit of the interval value.
  • the value set includes at least one intermediate value, and the intermediate value is greater than the minimum value of the interval value and less than the maximum value of the interval value. It can be understood that the more intermediate values a value set corresponding to a certain interval value contains, the greater the probability of being retrieved, thereby increasing the probability of the interval value being retrieved.
  • the interval value is 0 to 9°C
  • the intermediate value can be 1, 2, 3, 4, 5, 6, 7, 8, that is, the value set corresponding to the interval value 0 to 9°C is composed of the intermediate values 1, 2, 3, 4, 5, 6, 7, 8 and the numerical unit °C.
  • the value set does not include all values between the minimum and maximum values of the interval value, but takes as many values as possible. The more values taken, that is, the greater the density, the greater the probability of the interval value being retrieved.
  • Step a32 Establish a first correspondence between the value set and the document.
  • a first correspondence between the value set and the document is established, that is, a first correspondence between the value set and the document where the corresponding interval value is located is established. If a document contains more than two interval values, the document corresponds to multiple value sets.
  • a computer or server or cloud database stores a large number of documents, retrieves the interval values in each document, and establishes a value set corresponding to each document, thereby establishing a value set corresponding to the database.
  • each middle value in the value set corresponds to the document, so that the middle value of the interval value in the document can be retrieved.
  • the value set corresponding to a certain interval value in the document is newly generated data outside the document, which does not belong to the document itself and does not need to modify the document. Instead, it is stored separately as separate data, and then the first correspondence between the value set and the document is established.
  • the value retrieval process includes the following steps:
  • Step b12 receiving search information, where the search information includes the value to be searched and the value unit.
  • the search information input by the user is received, and the search information includes the value to be searched and the value unit, and of course, other search information can also be included.
  • the value to be searched is a value or a number
  • the value unit is the name of the standard quantity of the measurement object in mathematics or physics.
  • the search information input by the user is 3°C, which includes the value to be searched 3 and the value unit °C.
  • Step b22 retrieve the value and value unit to be retrieved from the value set.
  • the numerical value and numerical unit to be searched can be searched in the numerical set.
  • the interval value is 0 to 9°C
  • the intermediate values can be 1, 2, 3, 4, 5, 6, 7, 8, that is, the numerical set corresponding to the interval value 0 to 9°C is composed of the intermediate values 1, 2, 3, 4, 5, 6, 7, 8 and the numerical unit °C.
  • the numerical value to be searched input by the user is 3°C
  • the numerical value 3°C to be searched is searched in the numerical set 1, 2, 3, 4, 5, 6, 7, 8 and the numerical unit °C. It can be understood that the numerical value to be searched can still be used for searching existing content in the document. Please refer to the existing technology and will not be repeated here.
  • Step b32 If the value to be retrieved and the value unit are in the same value set, determine the document corresponding to the retrieval information according to the first corresponding relationship.
  • the document corresponding to the search information is determined according to the first corresponding relationship, thereby realizing the search of the portion of the interval value that is not directly displayed.
  • the interval value is 0 to 9°C
  • the intermediate value can be 1, 2, 3, 4, 5, 6, 7, 8, that is, the numerical set corresponding to the interval value 0 to 9°C is composed of the intermediate values 1, 2, 3, 4, 5, 6, 7, 8 and the numerical unit °C.
  • the value to be searched input by the user is 3°C
  • the value to be searched 3 and the numerical unit °C are searched in the numerical set 1, 2, 3, 4, 5, 6, 7, 8 and the numerical unit °C. If they happen to match at the same time, the document corresponding to the value to be searched 3°C can be determined.
  • This embodiment achieves the retrieval of some middle values of interval values by filling some middle values of interval values, and uses two parameters, namely, the value and the unit of the value, to perform the retrieval simultaneously, thereby improving the accuracy of the interval value retrieval.
  • step b3 the following steps are further included: It can be understood that because the database includes multiple documents, each document has a corresponding value set, and one document may correspond to multiple value sets, and there may be the same intermediate value between different value sets, so the number of documents corresponding to the search information determined according to the first corresponding relationship may exceed one. If the number of documents corresponding to the search information determined according to the first corresponding relationship exceeds one, the obtained documents are sorted and displayed according to the preset sorting rules, and the preset sorting rules can refer to the prior art. In this embodiment, when multiple search results appear, they are sorted and displayed to facilitate users to view the search results.
  • the computer-readable storage medium of this embodiment stores a computer program, and the computer program is suitable for being loaded by a processor to execute the steps of the interval value retrieval method of the above embodiment.
  • the computer of this embodiment includes a memory and a processor, the memory stores a computer program, and the processor executes the steps of the interval value retrieval method of the above embodiment by calling the computer program stored in the memory.
  • each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments.
  • the same or similar parts between the embodiments can be referred to each other.
  • the description is relatively simple, and the relevant parts can be referred to the method part.
  • the steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two.
  • the software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Mathematical Physics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • Fuzzy Systems (AREA)
  • Software Systems (AREA)
  • Probability & Statistics with Applications (AREA)
  • Automation & Control Theory (AREA)
  • Artificial Intelligence (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention relates to a retrieval method for numeric values within an interval, a storage medium, and a computer, said method comprising a procedure for establishing a numeric value set and a procedure for retrieving a numeric value. The procedure for establishing a numeric value set comprises: step a1, detecting a numeric interval in a document; step a2, obtaining, according to a preset algorithm, a numeric value set corresponding to said interval, wherein the numeric value set comprises the intermediate values of the interval; and step a3, establishing a first correspondence relationship between the numeric value set and the document. The procedure for retrieving a numeric value comprises: step b1, receiving search information, said search information comprising a numeric value to be retrieved; step b2, searching for said numeric value in numeric value sets; and step b3, if the numeric value is in the numeric value sets, determining, according to the first correspondence relationship, documents corresponding to the search information. By supplementing part of the intermediate values of an interval, the retrieval of part of the intermediate values of the interval is achieved, thus improving retrieval accuracy for numeric values within an interval.

Description

一种区间数值检索方法、存储介质及计算机Interval value retrieval method, storage medium and computer 技术领域Technical Field

本发明涉及信息检索领域,更具体地说,涉及一种区间数值检索方法、存储介质及计算机。The present invention relates to the field of information retrieval, and more specifically, to an interval value retrieval method, a storage medium and a computer.

背景技术Background Art

利用计算机或互联网进行数据检索能帮助人们在海量数据中快速找到所需内容,其中关键字检索是常用的检索方式。现有技术中关键字检索采用“所见即所得”的匹配逻辑,即检索时只能检索数据库中已经存在的文字,判断用户输入的关键字是否与数据库中已有文字匹配。例如用户输入的关键字为数字“3”,则需要数据库中明确出现数字“3”,才能成功匹配。Using computers or the Internet to search for data can help people quickly find the content they need in massive amounts of data, among which keyword search is a commonly used search method. In the prior art, keyword search uses a "what you see is what you get" matching logic, that is, when searching, only the text that already exists in the database can be searched, and it is determined whether the keyword entered by the user matches the text that already exists in the database. For example, if the keyword entered by the user is the number "3", the number "3" must appear clearly in the database to successfully match.

现有技术这种“所见即所得”的关键字检索匹配逻辑,无法实现对于区间数值中间值的检索,区间数值表达数值的一个区间段,中间值指区间数值最小值和最大值之间的取值,例如区间数值0至9,中间值为0至9之间的任意值,例如3。根据“所见即所得”的原理,区间数值0至9能够表现出的数值进是0和9两个值,则现有技术只能检索到0和9,而0至9之间的取值就不能被检索到。例如用户输入的关键字是3,虽然3处于0至9之间,但因为3并没有实际展现出来,所以不能被检索到,从而导致检索结果不准确。The "what you see is what you get" keyword search matching logic of the prior art cannot realize the search for the middle value of the interval value. The interval value expresses an interval segment of the value, and the middle value refers to the value between the minimum and maximum values of the interval value. For example, the interval value is 0 to 9, and the middle value is any value between 0 and 9, such as 3. According to the principle of "what you see is what you get", the interval value 0 to 9 can only express two values, 0 and 9. The prior art can only retrieve 0 and 9, and the values between 0 and 9 cannot be retrieved. For example, the keyword entered by the user is 3. Although 3 is between 0 and 9, it cannot be retrieved because 3 is not actually displayed, resulting in inaccurate search results.

发明内容Summary of the invention

本发明要解决的技术问题在于,提供一种区间数值检索方法、存储介质及计算机。The technical problem to be solved by the present invention is to provide an interval value retrieval method, a storage medium and a computer.

本发明解决其技术问题所采用的技术方案是:构造一种区间数值检索方法,包括建立数值集合过程和数值检索过程;The technical solution adopted by the present invention to solve the technical problem is: constructing an interval value retrieval method, including establishing a value set process and a value retrieval process;

所述建立数值集合包括:The establishing of the value set comprises:

步骤a1、检测文档中的区间数值;Step a1, detecting the interval value in the document;

步骤a2、按照预设算法得到所述区间数值对应的数值集合,所述数值集合包括所述区间数值的中间值;Step a2: obtaining a value set corresponding to the interval value according to a preset algorithm, wherein the value set includes the middle value of the interval value;

步骤a3、建立所述数值集合与所述文档的第一对应关系;Step a3, establishing a first corresponding relationship between the value set and the document;

所述数值检索过程包括:The numerical retrieval process includes:

步骤b1、接收检索信息,所述检索信息包括待检索数值;Step b1, receiving search information, wherein the search information includes a value to be searched;

步骤b2、在所述数值集合中检索所述待检索数值;Step b2, searching the value to be searched in the value set;

步骤b3、若所述待检索数值在所述数值集合中,则根据所述第一对应关系确定所述检索信息对应的文档。Step b3: If the value to be retrieved is in the value set, determine the document corresponding to the search information according to the first corresponding relationship.

进一步,在本发明所述的区间数值检索方法中,所述数值集合包括至少一个中间值,所述中间值大于所述区间数值的最小值且小于所述区间数值的最大值。Furthermore, in the interval value search method described in the present invention, the value set includes at least one intermediate value, and the intermediate value is greater than the minimum value of the interval value and less than the maximum value of the interval value.

进一步,在本发明所述的区间数值检索方法中,所述步骤a2包括:Furthermore, in the interval value search method of the present invention, the step a2 comprises:

从所述区间数值的最小值开始按照预设步长逐步增加取值直至所述区间数值的最大值,每增加一次所述预设步长产生一个中间值,由所得所有中间值组成所述区间数值对应的数值集合;或者Starting from the minimum value of the interval value, gradually increasing the value according to the preset step length until the maximum value of the interval value, each increase of the preset step length generates an intermediate value, and all the intermediate values obtained constitute the value set corresponding to the interval value; or

从所述区间数值的最大值开始按照预设步长逐步减小取值直至所述区间数值的最小值,每减小一次所述预设步长产生一个中间值,由所得所有中间值组成所述区间数值对应的数值集合。Starting from the maximum value of the interval value, the value is gradually reduced according to the preset step size until it reaches the minimum value of the interval value. Each time the preset step size is reduced, an intermediate value is generated, and all the intermediate values obtained constitute a value set corresponding to the interval value.

进一步,在本发明所述的区间数值检索方法中,在所述步骤a1之后所述步骤a2之前还包括:Furthermore, in the interval value search method of the present invention, after step a1 and before step a2, the method further includes:

获取所述区间数值对应的数值单位;Get the numerical unit corresponding to the interval value;

根据第二对应关系查找所述数值单位对应的预设步长,所述第二对应关系为所述数值单位和所述预设步长的对应关系。The preset step length corresponding to the numerical unit is searched according to a second corresponding relationship, where the second corresponding relationship is a corresponding relationship between the numerical unit and the preset step length.

进一步,在本发明所述的区间数值检索方法中,在所述步骤a1之后所述步骤a2之前还包括:Furthermore, in the interval value search method of the present invention, after step a1 and before step a2, the method further includes:

获取所述区间数值对应的数值单位及所述文档所属的产品信息;Obtain the numerical unit corresponding to the interval value and the product information to which the document belongs;

根据第三对应关系查找所述数值单位和所述产品信息对应的预设步长,所述第三对应关系为所述预设步长与所述数值单位和产品信息的对应关系。The preset step length corresponding to the numerical unit and the product information is searched according to a third corresponding relationship, where the third corresponding relationship is a corresponding relationship between the preset step length, the numerical unit, and the product information.

进一步,在本发明所述的区间数值检索方法中,所述步骤a1包括:检测文档中的区间数值以及所述区间数值在所述文档中的位置信息;Furthermore, in the interval value retrieval method of the present invention, the step a1 includes: detecting the interval value in the document and the position information of the interval value in the document;

所述步骤a3包括:建立所述数值集合与所述文档的第一对应关系,以及所述数值集合与所述位置信息的第四对应关系;The step a3 comprises: establishing a first corresponding relationship between the value set and the document, and a fourth corresponding relationship between the value set and the location information;

所述步骤b3包括:若所述待检索数值在所述数值集合中,则根据所述第一对应关系确定所述检索信息对应的文档,以及根据所述第四对应关系确定所述检索信息在所述文档中的位置。The step b3 includes: if the value to be retrieved is in the value set, determining the document corresponding to the retrieval information according to the first corresponding relationship, and determining the position of the retrieval information in the document according to the fourth corresponding relationship.

进一步,在本发明所述的区间数值检索方法中,所述步骤a1包括:检测文档中的区间数值及所述区间数值对应的数值单位;Furthermore, in the interval value search method of the present invention, the step a1 includes: detecting the interval value in the document and the numerical unit corresponding to the interval value;

所述步骤a2中所述数值集合包括所述区间数值的中间值和所述数值单位;The numerical value set in step a2 includes the middle value of the interval value and the numerical value unit;

所述步骤b1中所述检索信息包括待检索数值和数值单位;The search information in step b1 includes the value to be searched and the value unit;

所述步骤b2包括:在所述数值集合中检索所述待检索数值和所述数值单位;The step b2 comprises: searching the value to be searched and the value unit in the value set;

所述步骤b3中若所述待检索数值在所述数值集合中包括:若所述待检索数值和所述数值单位在同一所述数值集合中。In the step b3, if the value to be retrieved is included in the value set: if the value to be retrieved and the value unit are in the same value set.

进一步,在本发明所述的区间数值检索方法中,在所述步骤b3之后还包括:Furthermore, in the interval value search method of the present invention, after step b3, the following steps are further included:

若根据所述第一对应关系确定所述检索信息对应的文档的数量超过一个,则按照预设排序规则对所得文档进行排序并显示。If it is determined according to the first corresponding relationship that the number of documents corresponding to the search information exceeds one, the obtained documents are sorted and displayed according to a preset sorting rule.

另外,本发明还提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序适于处理器进行加载,以执行如上述的区间数值检索方法的步骤。In addition, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded by a processor to execute the steps of the interval value retrieval method as described above.

另外,本发明还提供一种计算机,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器通过调用所述存储器中存储的所述计算机程序,执行如上述的区间数值检索方法的步骤。In addition, the present invention also provides a computer, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the steps of the above-mentioned interval value retrieval method by calling the computer program stored in the memory.

实施本发明的一种区间数值检索方法、存储介质及计算机,具有以下有益效果:本发明通过补齐区间数值的部分中间值,实现区间数值部分中间值的检索,提高区间数值检索准确率。The implementation of an interval value search method, storage medium and computer of the present invention has the following beneficial effects: the present invention realizes the search of some intermediate values of interval values by filling some intermediate values of interval values, thereby improving the accuracy of interval value search.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

下面将结合附图及实施例对本发明作进一步说明,附图中:The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:

图1是本发明实施例提供的区间数值检索方法的流程图;FIG1 is a flow chart of a method for retrieving interval values provided by an embodiment of the present invention;

图2是本发明实施例提供的区间数值检索方法的流程图;FIG2 is a flow chart of a method for retrieving interval values provided by an embodiment of the present invention;

图3是本发明实施例提供的区间数值检索方法的流程图。FIG. 3 is a flow chart of a method for retrieving interval values provided by an embodiment of the present invention.

具体实施方式DETAILED DESCRIPTION

为了对本发明的技术特征、目的和效果有更加清楚的理解,现对照附图详细说明本发明的具体实施方式。In order to have a clearer understanding of the technical features, purposes and effects of the present invention, specific embodiments of the present invention are now described in detail with reference to the accompanying drawings.

在一个优选实施例中,参考图1,本实施例的区间数值检索方法应用于检索领域,包括计算机本地数据检索、服务器数据检索和云端数据检索等。区间数值是指数值的一个区间段,即一个取值范围。区间数值可以是只包含数字的数字范围,例如0至9;也可以是包含数值单位的取值范围,例如0℃(摄氏度)至9℃,0m(米)至9m,0A(安培)至9A等,其中0℃(摄氏度)、m(米)和A(安培)为数值单位。具体的,该区间数值检索方法包括建立数值集合过程和数值检索过程,以下分别进行说明。In a preferred embodiment, referring to FIG1 , the interval value retrieval method of this embodiment is applied to the retrieval field, including computer local data retrieval, server data retrieval, and cloud data retrieval, etc. An interval value refers to an interval segment of a value, that is, a value range. An interval value can be a numerical range containing only numbers, such as 0 to 9; or it can be a value range containing numerical units, such as 0°C (Celsius) to 9°C, 0m (meter) to 9m, 0A (ampere) to 9A, etc., where 0°C (Celsius), m (meter) and A (ampere) are numerical units. Specifically, the interval value retrieval method includes a process of establishing a numerical set and a numerical retrieval process, which are described separately below.

首先,在检索前要建立数值集合,该数值集合建立过程包括下述步骤:First, before searching, a value set must be established. The process of establishing the value set includes the following steps:

步骤a1、检测文档中的区间数值。Step a1: Detect interval values in the document.

具体的,本实施例的文档是指包含一定数据的文件,尤其指包含文字的文件,以便能够用于本实施例的文字检索。可以理解,文件格式表现形式较多,本实施例对此不做限定。作为选择,文档包括但不限于word文档、TXT文档、PDF文档、EXCEL表格、PPT文档、网页等。区间数值通常有特定表达方式,可以使用中间符号“-”、“~”、“()”、“[]”等来表示,例如使用中间符号表示的区间数值0-9,0~9,(0,9),[0,9];还可以用表示范围的文字来表达,例如0至9,从0到9等,位于0和9之间等。基于区间数值的特定表达方式,将这些特定表达方式制作为区间数值模型,使用区间数值模型在文档中检测与区间数值模型匹配的区间数值。例如区间数值模型“数字-数字”,如果在文档中检测到符合区间数值模型“数字-数字”的文字,认为是检索到区间数值,例如0-9符合区间数值模型“数字-数字”。通过使用区间数值模型可实现文档中区间数值的自动检测,不需要人工查找文档中的区间数值,效率高,成本低。Specifically, the document of this embodiment refers to a file containing certain data, especially a file containing text, so that it can be used for text retrieval in this embodiment. It can be understood that there are many forms of file format expression, and this embodiment does not limit this. As a choice, the document includes but is not limited to word documents, TXT documents, PDF documents, EXCEL tables, PPT documents, web pages, etc. Interval values usually have specific expressions, which can be represented by intermediate symbols such as "-", "~", "()", "[]", etc., such as interval values 0-9, 0~9, (0,9), [0,9] represented by intermediate symbols; they can also be expressed by text representing ranges, such as 0 to 9, from 0 to 9, etc., between 0 and 9, etc. Based on the specific expressions of interval values, these specific expressions are made into interval value models, and the interval value model is used to detect interval values matching the interval value model in the document. For example, the interval value model "number-number", if the text that conforms to the interval value model "number-number" is detected in the document, it is considered that the interval value is retrieved, for example, 0-9 conforms to the interval value model "number-number". By using the interval value model, automatic detection of interval values in documents can be achieved without the need for manual search for interval values in documents, which is highly efficient and low-cost.

步骤a2、按照预设算法得到区间数值对应的数值集合,数值集合包括区间数值的中间值。Step a2: Obtain a value set corresponding to the interval value according to a preset algorithm, wherein the value set includes the middle value of the interval value.

具体的,检索到文档中的区间数值后,按照预设算法得到区间数值对应的数值集合,每个区间数值对应一个数值集合,数值集合包括区间数值的中间值。数值集合包括至少一个中间值,中间值大于区间数值的最小值且小于区间数值的最大值。可以理解,某一区间数值对应的数值集合包含的中间值越多,被检索到的概率就越大,从而提高该区间数值被检索到的概率。例如,区间数值0至9,中间值可取1、2、3、4、5、6、7、8,即由中间值1、2、3、4、5、6、7、8组成区间数值0至9对应的数值集合。但需要说明的是,数值集合并不包含区间数值最小值和最大值之间的所有数值,而是取尽可能多的数值,所取数值越多,即密度越大,区间数值被检索的概率越大;但中间值越多,对应的数据处理量就越大,所以需要在中间值的数量和被检索概率之间取得平衡。Specifically, after the interval value in the document is retrieved, the value set corresponding to the interval value is obtained according to the preset algorithm, each interval value corresponds to a value set, and the value set includes the intermediate value of the interval value. The value set includes at least one intermediate value, and the intermediate value is greater than the minimum value of the interval value and less than the maximum value of the interval value. It can be understood that the more intermediate values a value set corresponding to a certain interval value contains, the greater the probability of being retrieved, thereby increasing the probability of the interval value being retrieved. For example, the interval values are 0 to 9, and the intermediate values can be 1, 2, 3, 4, 5, 6, 7, 8, that is, the value set corresponding to the interval values 0 to 9 is composed of the intermediate values 1, 2, 3, 4, 5, 6, 7, 8. However, it should be noted that the value set does not include all values between the minimum and maximum values of the interval values, but takes as many values as possible. The more values taken, that is, the greater the density, the greater the probability of the interval value being retrieved; but the more intermediate values, the greater the corresponding data processing amount, so it is necessary to strike a balance between the number of intermediate values and the probability of being retrieved.

步骤a3、建立数值集合与文档的第一对应关系。Step a3: Establish a first correspondence between the value set and the document.

具体的,得到某一区间数值对应的数值集合后,建立数值集合与文档的第一对应关系,即建立数值集合与对应区间数值所在文档的第一对应关系。若文档包含两个以上区间数值,则该文档对应多个数值集合。通常情况下,计算机或服务器或云端数据库存储有大量文档,检索出每个文档中的区间数值,并建立每个文档对应的数值集合,从而建立数据库对应的数值集合。Specifically, after obtaining the value set corresponding to a certain interval value, a first correspondence between the value set and the document is established, that is, a first correspondence between the value set and the document where the corresponding interval value is located is established. If a document contains more than two interval values, the document corresponds to multiple value sets. Usually, a computer or server or cloud database stores a large number of documents, retrieves the interval values in each document, and establishes a value set corresponding to each document, thereby establishing a value set corresponding to the database.

可以理解,建立第一对应关系后数值集合中每个中间值与文档都对应,这样就能实现文档内区间数值的中间值的检索。需要说明的是,文档中某一区间数值对应的数值集合为文档之外新产生数据,并不属于文档本身,也不需要修改文档,而是作为单独的数据另外存储,然后建立数值集合与文档的第一对应关系。It can be understood that after the first correspondence is established, each middle value in the value set corresponds to the document, so that the middle value of the interval value in the document can be retrieved. It should be noted that the value set corresponding to a certain interval value in the document is newly generated data outside the document, which does not belong to the document itself and does not need to modify the document. Instead, it is stored separately as separate data, and then the first correspondence between the value set and the document is established.

其次,在建立数值集合后进行数值检索,该数值检索过程包括下述步骤:Secondly, after the value set is established, the value retrieval is performed. The value retrieval process includes the following steps:

步骤b1、接收检索信息,检索信息包括待检索数值。Step b1, receiving search information, the search information includes the value to be searched.

具体的,接收用户输入的检索信息,该检索信息包括待检索数值,当然还可以包括其他检索信息。需要说明的是,该待检索数值为数值或数字。Specifically, the search information input by the user is received, and the search information includes the value to be searched, and of course, may also include other search information. It should be noted that the value to be searched is a value or a number.

步骤b2、在数值集合中检索待检索数值。Step b2: Retrieve the value to be retrieved from the value set.

具体的,因数值集合中所有中间值都已是具体数值,能够通过“所见即所得”的文字匹配方式进行检索,所以可在数值集合中检索待检索数值。例如区间数值0至9,中间值可取1、2、3、4、5、6、7、8,即由中间值1、2、3、4、5、6、7、8组成区间数值0至9对应的数值集合。若用户输入的待检索数值为3,则在数值集合1、2、3、4、5、6、7、8中检索待检索数值3。可以理解的,待检索数值依然可用于文档中已有内容的检索,可参考现有技术,此处不再赘述。Specifically, since all the intermediate values in the numerical set are already specific values, they can be searched through the "what you see is what you get" text matching method, so the value to be searched can be searched in the numerical set. For example, the interval values are 0 to 9, and the intermediate values can be 1, 2, 3, 4, 5, 6, 7, 8, that is, the numerical set corresponding to the interval values 0 to 9 is composed of the intermediate values 1, 2, 3, 4, 5, 6, 7, 8. If the value to be searched input by the user is 3, the value to be searched 3 is searched in the numerical set 1, 2, 3, 4, 5, 6, 7, 8. It can be understood that the value to be searched can still be used to search for existing content in the document, and reference can be made to the prior art, which will not be repeated here.

步骤b3、若待检索数值在数值集合中,则根据第一对应关系确定检索信息对应的文档。Step b3: If the value to be retrieved is in the value set, determine the document corresponding to the retrieval information according to the first corresponding relationship.

具体的,通过在数值集合中检索待检索数值,若待检索数值在数值集合中,则根据第一对应关系确定检索信息对应的文档,从而实现区间数值未直接显示部分的检索。例如区间数值0至9,中间值可取1、2、3、4、5、6、7、8,即由中间值1、2、3、4、5、6、7、8组成区间数值0至9对应的数值集合。若用户输入的待检索数值为3,则在数值集合1、2、3、4、5、6、7、8中检索待检索数值3,刚好能匹配到,则可确定待检索数值3对应的文档。Specifically, by searching for the value to be searched in the value set, if the value to be searched is in the value set, the document corresponding to the search information is determined according to the first corresponding relationship, thereby realizing the search of the portion of the interval value that is not directly displayed. For example, the interval values are 0 to 9, and the middle values can be 1, 2, 3, 4, 5, 6, 7, 8, that is, the value set corresponding to the interval values 0 to 9 is composed of the middle values 1, 2, 3, 4, 5, 6, 7, 8. If the value to be searched input by the user is 3, the value 3 to be searched is searched in the value set 1, 2, 3, 4, 5, 6, 7, 8, and it happens to match, then the document corresponding to the value 3 to be searched can be determined.

另外,假如用户输入的待检索数值是3.5,则在数值集合1、2、3、4、5、6、7、8中不能匹配成功,但3.5确实也在区间数值0至9中,此处也说明,本实施例仅能一定程度上增加区间数值被检索到的概率,但不能实现区间数值的全覆盖检索。并且也可以看出,数值集合所取数值越多,即密度越大,区间数值被检索的概率越大。In addition, if the value to be searched input by the user is 3.5, it cannot be successfully matched in the value set 1, 2, 3, 4, 5, 6, 7, 8, but 3.5 is indeed in the interval value 0 to 9. It is also explained here that this embodiment can only increase the probability of the interval value being searched to a certain extent, but cannot achieve full coverage search of the interval value. It can also be seen that the more values the value set takes, that is, the greater the density, the greater the probability of the interval value being searched.

本实施例通过补齐区间数值的部分中间值,实现区间数值部分中间值的检索,提高区间数值检索准确率。This embodiment achieves retrieval of partial middle values of interval values by filling in partial middle values of interval values, thereby improving the accuracy of interval value retrieval.

在一些实施例的区间数值检索方法中,按照预设算法得到区间数值对应的数值集合,数值集合包括区间数值的中间值。本实施例提供一种预设算法:从区间数值的最小值开始按照预设步长逐步增加取值直至区间数值的最大值,每增加一次预设步长产生一个中间值,由所得所有中间值组成区间数值对应的数值集合。例如区间数值0至9,预设步长为1,则从0开始每次增加1,所得中间值为1、2、3、4、5、6、7、8,即由中间值1、2、3、4、5、6、7、8组成区间数值0至9对应的数值集合。In some embodiments of the interval value retrieval method, a numerical set corresponding to the interval value is obtained according to a preset algorithm, and the numerical set includes the intermediate value of the interval value. This embodiment provides a preset algorithm: starting from the minimum value of the interval value, the value is gradually increased according to the preset step length until the maximum value of the interval value, and each increase in the preset step length generates an intermediate value, and the numerical set corresponding to the interval value is composed of all the intermediate values. For example, if the interval value is 0 to 9 and the preset step length is 1, then it increases by 1 each time starting from 0, and the intermediate values obtained are 1, 2, 3, 4, 5, 6, 7, 8, that is, the numerical set corresponding to the interval value 0 to 9 is composed of the intermediate values 1, 2, 3, 4, 5, 6, 7, 8.

在一些实施例的区间数值检索方法中,按照预设算法得到区间数值对应的数值集合,数值集合包括区间数值的中间值。本实施例提供一种预设算法:从区间数值的最大值开始按照预设步长逐步减小取值直至区间数值的最小值,每减小一次预设步长产生一个中间值,由所得所有中间值组成区间数值对应的数值集合。例如区间数值0至9,预设步长为1,则从9开始每次减小1,所得中间值为1、2、3、4、5、6、7、8,即由中间值1、2、3、4、5、6、7、8组成区间数值0至9对应的数值集合。In some embodiments of the interval value retrieval method, a numerical set corresponding to the interval value is obtained according to a preset algorithm, and the numerical set includes the intermediate value of the interval value. This embodiment provides a preset algorithm: starting from the maximum value of the interval value, the value is gradually reduced according to the preset step length until the minimum value of the interval value, and each reduction of the preset step length generates an intermediate value, and the numerical set corresponding to the interval value is composed of all the intermediate values. For example, if the interval value is 0 to 9 and the preset step length is 1, then starting from 9, it is reduced by 1 each time, and the intermediate values obtained are 1, 2, 3, 4, 5, 6, 7, 8, that is, the numerical set corresponding to the interval value 0 to 9 is composed of the intermediate values 1, 2, 3, 4, 5, 6, 7, 8.

在一些实施例的区间数值检索方法中,在步骤a1之后步骤a2之前还包括确定预设步长的过程:获取区间数值对应的数值单位,数值单位通常位于紧邻区间数值后的位置,可将区间数值后紧邻的单位作为该区间数值的数值单位。例如,区间数值0至9℃,则将区间数值0至9后紧邻的单位℃作为该区间数值的数值单位。可以理解的,区间数值和数值单位的位置关系具有多样性,可根据区间数值和数值单位的其他位置关系确定区间数值对应的数值单位,其原理与数值单位位于紧邻区间数值后类似,不再一一说明。In some embodiments of the interval value search method, after step a1 and before step a2, a process of determining a preset step length is also included: obtaining the numerical unit corresponding to the interval value, the numerical unit is usually located immediately after the interval value, and the unit immediately after the interval value can be used as the numerical unit of the interval value. For example, if the interval value is 0 to 9°C, the unit ℃ immediately after the interval value 0 to 9 is used as the numerical unit of the interval value. It can be understood that the positional relationship between the interval value and the numerical unit is diverse, and the numerical unit corresponding to the interval value can be determined based on other positional relationships between the interval value and the numerical unit. The principle is similar to that of the numerical unit being located immediately after the interval value, and will not be explained one by one.

进一步,确定区间数值对应的数值单位后,根据第二对应关系查找数值单位对应的预设步长,第二对应关系为数值单位和预设步长的对应关系。可以理解,每个数值单位下对应的数据精度通常是固定的,例如摄氏度℃对应的精度通常为0.1,即用户搜索数值时通常也是精确到0.1℃,此时预设步长可为0.1,在精度0.1下得到的数值集合可满足大部分用户需求。所以第二对应关系的设定需要结合数值单位在大量数据中的普遍精度要求以及工作人员的经验进行设定,每种数值单位对应一个预设步长。Further, after determining the numerical unit corresponding to the interval value, the preset step length corresponding to the numerical unit is searched according to the second corresponding relationship. The second corresponding relationship is the correspondence between the numerical unit and the preset step length. It can be understood that the data accuracy corresponding to each numerical unit is usually fixed. For example, the accuracy corresponding to Celsius ℃ is usually 0.1, that is, when the user searches for a numerical value, it is usually accurate to 0.1℃. At this time, the preset step length can be 0.1, and the numerical set obtained at an accuracy of 0.1 can meet the needs of most users. Therefore, the setting of the second corresponding relationship needs to be combined with the general accuracy requirements of the numerical unit in a large amount of data and the experience of the staff. Each numerical unit corresponds to a preset step length.

本实施例根据区间数值对应的数值单位确定预设步长,使预设步长的取值更加合理,从而使区间数值的中间值取值更加合理,进而增加区间数值检索准确率。This embodiment determines the preset step length according to the numerical unit corresponding to the interval value, so that the value of the preset step length is more reasonable, thereby making the value of the middle value of the interval value more reasonable, thereby increasing the accuracy of interval value retrieval.

在一些实施例的区间数值检索方法中,在步骤a1之后步骤a2之前还包括确定预设步长的过程:获取区间数值对应的数值单位及文档所属的产品信息,其中数值单位通常位于紧邻区间数值后的位置,可将区间数值后紧邻的单位作为该区间数值的数值单位。例如,区间数值0至9℃,则将区间数值0至9后紧邻的单位℃作为该区间数值的数值单位。可以理解的,区间数值和数值单位的位置关系具有多样性,可根据区间数值和数值单位的其他位置关系确定区间数值对应的数值单位,其原理与数值单位位于紧邻区间数值后类似,不再一一说明。In some embodiments of the interval value retrieval method, after step a1 and before step a2, a process of determining a preset step length is also included: obtaining the numerical unit corresponding to the interval value and the product information to which the document belongs, wherein the numerical unit is usually located immediately after the interval value, and the unit immediately after the interval value can be used as the numerical unit of the interval value. For example, if the interval value is 0 to 9°C, the unit ℃ immediately after the interval value 0 to 9 is used as the numerical unit of the interval value. It can be understood that the positional relationship between the interval value and the numerical unit is diverse, and the numerical unit corresponding to the interval value can be determined based on other positional relationships between the interval value and the numerical unit. The principle is similar to that of the numerical unit being located immediately after the interval value, and will not be explained one by one.

进一步,文档所属的产品信息是指文档所限定或描述或归属产品的产品信息,产品信息包括但不限于产品名称、产品型号、产品领域、产品用途等,能用于描述产品的信息都可以作为产品信息。通过产品信息可以进一步明确区间数值所描述的产品,进而可更加准确的确定预设步长。例如区间数值0至9mm(毫米),如果其对应的产品信息是电脑尺寸,则预设步长可为1mm;如果其对应的产品信息是电脑中内存条的尺寸,则预设步长可为0.1mm。Furthermore, the product information to which the document belongs refers to the product information of the product defined, described or attributed by the document. The product information includes but is not limited to the product name, product model, product field, product use, etc. Any information that can be used to describe the product can be used as product information. The product described by the interval value can be further clarified through product information, and the preset step length can be determined more accurately. For example, if the interval value is 0 to 9mm (millimeter), if the corresponding product information is the size of the computer, the preset step length can be 1mm; if the corresponding product information is the size of the memory stick in the computer, the preset step length can be 0.1mm.

进一步,确定区间数值对应的数值单位和产品信息后,根据第三对应关系查找数值单位和产品信息对应的预设步长,第三对应关系为预设步长与数值单位和产品信息的对应关系。可以理解,本实施例同时考虑数值单位和产品信息来确定预设步长,从数值单位本身和其所所述的对象来确定预设步长,可使所取预设步长更加合理,所以第三对应关系的设定需要结合数值单位在大量数据中的普遍精度要求、同时考虑产品信息对尺寸的精度要求以及工作人员的经验进行设定,每种数值单位和产品信息对应一个预设步长。Further, after determining the numerical unit and product information corresponding to the interval numerical value, the preset step length corresponding to the numerical unit and product information is searched according to the third corresponding relationship, and the third corresponding relationship is the corresponding relationship between the preset step length, the numerical unit and the product information. It can be understood that in this embodiment, the preset step length is determined by considering both the numerical unit and the product information. The preset step length is determined from the numerical unit itself and the object it describes, which can make the preset step length more reasonable. Therefore, the setting of the third corresponding relationship needs to be combined with the general accuracy requirements of the numerical unit in a large amount of data, and the accuracy requirements of the product information on the size and the experience of the staff. Each numerical unit and product information corresponds to a preset step length.

本实施例根据区间数值对应的数值单位以及产品信息来确定预设步长,相较于只根据数值单位确定预设步长,可使预设步长的取值更加合理,从而使区间数值的中间值取值更加合理,进而增加区间数值检索准确率。This embodiment determines the preset step length according to the numerical unit corresponding to the interval value and the product information. Compared with determining the preset step length only according to the numerical unit, the value of the preset step length can be more reasonable, thereby making the middle value of the interval value more reasonable, thereby increasing the accuracy of interval value retrieval.

在一个优选实施例中,参考图2,本实施例的区间数值检索方法应用于检索领域,包括计算机本地数据检索、服务器数据检索和云端数据检索等。区间数值是指数值的一个区间段,即一个取值范围。区间数值可以是只包含数字的数字范围,例如0至9;也可以是包含数值单位的取值范围,例如0℃(摄氏度)至9℃,0m(米)至9m,0A(安培)至9A等,其中0℃(摄氏度)、m(米)和A(安培)为数值单位。具体的,该区间数值检索方法包括建立数值集合过程和数值检索过程,以下分别进行说明。In a preferred embodiment, referring to FIG2 , the interval value retrieval method of this embodiment is applied to the retrieval field, including computer local data retrieval, server data retrieval, and cloud data retrieval, etc. An interval value refers to an interval segment of a value, that is, a value range. An interval value can be a numerical range containing only numbers, such as 0 to 9; or it can be a value range containing numerical units, such as 0°C (degrees Celsius) to 9°C, 0m (meter) to 9m, 0A (ampere) to 9A, etc., where 0°C (degrees Celsius), m (meter) and A (ampere) are numerical units. Specifically, the interval value retrieval method includes a process of establishing a numerical set and a numerical retrieval process, which are described separately below.

首先,在检索前要建立数值集合,该数值集合建立过程包括下述步骤:First, before searching, a value set must be established. The process of establishing the value set includes the following steps:

步骤a11、检测文档中的区间数值以及区间数值在文档中的位置信息。Step a11: Detect the interval values in the document and the position information of the interval values in the document.

具体的,本实施例的文档是指包含一定数据的文件,尤其指包含文字的文件,以便能够用于本实施例的文字检索。可以理解,文件格式表现形式较多,本实施例对此不做限定。作为选择,文档包括但不限于word文档、TXT文档、PDF文档、EXCEL表格、PPT文档、网页等。区间数值通常有特定表达方式,可以使用中间符号“-”、“~”、“()”、“[]”等来表示,例如使用中间符号表示的区间数值0-9,0~9,(0,9),[0,9];还可以用表示范围的文字来表达,例如0至9,从0到9等,位于0和9之间等。基于区间数值的特定表达方式,将这些特定表达方式制作为区间数值模型,使用区间数值模型在文档中检测与区间数值模型匹配的区间数值。例如区间数值模型“数字-数字”,如果在文档中检测到符合区间数值模型“数字-数字”的文字,认为是检索到区间数值,例如0-9符合区间数值模型“数字-数字”。通过使用区间数值模型可实现文档中区间数值的自动检测,不需要人工查找文档中的区间数值,效率高,成本低。Specifically, the document of this embodiment refers to a file containing certain data, especially a file containing text, so that it can be used for text retrieval in this embodiment. It can be understood that there are many forms of file format expression, and this embodiment does not limit this. As a choice, the document includes but is not limited to word documents, TXT documents, PDF documents, EXCEL tables, PPT documents, web pages, etc. Interval values usually have specific expressions, which can be represented by intermediate symbols such as "-", "~", "()", "[]", etc., such as interval values 0-9, 0~9, (0,9), [0,9] represented by intermediate symbols; they can also be expressed by text representing ranges, such as 0 to 9, from 0 to 9, etc., between 0 and 9, etc. Based on the specific expressions of interval values, these specific expressions are made into interval value models, and the interval value model is used to detect interval values matching the interval value model in the document. For example, the interval value model "number-number", if the text that conforms to the interval value model "number-number" is detected in the document, it is considered that the interval value is retrieved, for example, 0-9 conforms to the interval value model "number-number". By using the interval value model, automatic detection of interval values in documents can be achieved without the need for manual search for interval values in documents, which is highly efficient and low-cost.

进一步,在检测到文档中的区间数值后获取该区间数值在文档中的位置信息,位置信息用于定位区间数值在文档中的位置,例如位置信息为第2页第3行,则在第2页第3行能够定位到该区间数值。若文档中包含多个区间数值,则获取每个区间数值对应的位置信息,并建立各个区间数值与位置信息的对应关系。Furthermore, after detecting the interval value in the document, the position information of the interval value in the document is obtained, and the position information is used to locate the position of the interval value in the document. For example, if the position information is line 3 on page 2, the interval value can be located on line 3 on page 2. If the document contains multiple interval values, the position information corresponding to each interval value is obtained, and a corresponding relationship between each interval value and the position information is established.

步骤a21、按照预设算法得到区间数值对应的数值集合,数值集合包括区间数值的中间值。Step a21, obtaining a value set corresponding to the interval value according to a preset algorithm, wherein the value set includes the middle value of the interval value.

具体的,检索到文档中的区间数值后,按照预设算法得到区间数值对应的数值集合,每个区间数值对应一个数值集合,数值集合包括区间数值的中间值。数值集合包括至少一个中间值,中间值大于区间数值的最小值且小于区间数值的最大值。可以理解,某一区间数值对应的数值集合包含的中间值越多,被检索到的概率就越大,从而提高该区间数值被检索到的概率。例如,区间数值0至9,中间值可取1、2、3、4、5、6、7、8,即由中间值1、2、3、4、5、6、7、8组成区间数值0至9对应的数值集合。但需要说明的是,数值集合并不包含区间数值最小值和最大值之间的所有数值,而是取尽可能多的数值,所取数值越多,即密度越大,区间数值被检索的概率越大。Specifically, after the interval value in the document is retrieved, the value set corresponding to the interval value is obtained according to the preset algorithm, each interval value corresponds to a value set, and the value set includes the middle value of the interval value. The value set includes at least one middle value, and the middle value is greater than the minimum value of the interval value and less than the maximum value of the interval value. It can be understood that the more middle values a value set corresponding to a certain interval value contains, the greater the probability of being retrieved, thereby increasing the probability of the interval value being retrieved. For example, the interval values are 0 to 9, and the middle values can be 1, 2, 3, 4, 5, 6, 7, 8, that is, the value set corresponding to the interval values 0 to 9 is composed of the middle values 1, 2, 3, 4, 5, 6, 7, 8. However, it should be noted that the value set does not include all values between the minimum and maximum values of the interval values, but takes as many values as possible. The more values taken, that is, the greater the density, the greater the probability of the interval value being retrieved.

步骤a31、建立数值集合与文档的第一对应关系,以及数值集合与位置信息的第四对应关系。Step a31: establish a first corresponding relationship between the value set and the document, and a fourth corresponding relationship between the value set and the position information.

具体的,得到某一区间数值对应的数值集合后,建立数值集合与文档的第一对应关系,即建立数值集合与对应区间数值所在文档的第一对应关系。若文档包含两个以上区间数值,则该文档对应多个数值集合。通常情况下,计算机或服务器或云端数据库存储有大量文档,检索出每个文档中的区间数值,并建立每个文档对应的数值集合,从而建立数据库对应的数值集合。Specifically, after obtaining the value set corresponding to a certain interval value, a first correspondence between the value set and the document is established, that is, a first correspondence between the value set and the document where the corresponding interval value is located is established. If a document contains more than two interval values, the document corresponds to multiple value sets. Usually, a computer or server or cloud database stores a large number of documents, retrieves the interval values in each document, and establishes a value set corresponding to each document, thereby establishing a value set corresponding to the database.

可以理解,建立第一对应关系后数值集合中每个中间值与文档都对应,这样就能实现文档内区间数值的中间值的检索。需要说明的是,文档中某一区间数值对应的数值集合为文档之外新产生数据,并不属于文档本身,也不需要修改文档,而是作为单独的数据另外存储,然后建立数值集合与文档的第一对应关系。It can be understood that after the first correspondence is established, each middle value in the value set corresponds to the document, so that the middle value of the interval value in the document can be retrieved. It should be noted that the value set corresponding to a certain interval value in the document is newly generated data outside the document, which does not belong to the document itself and does not need to modify the document. Instead, it is stored separately as separate data, and then the first correspondence between the value set and the document is established.

进一步,建立数值集合与文档的第一对应关系后,根据第一对应确定数值集合对应的文档。为使用户能够进一步定位到区间数值所在文档内的具体位置,本实施例同时建立数值集合与位置信息的第四对应关系,根据第四对应关系可确定数值集合在文档中的具体位置。Furthermore, after establishing the first correspondence between the value set and the document, the document corresponding to the value set is determined according to the first correspondence. In order to enable the user to further locate the specific position of the interval value in the document, this embodiment simultaneously establishes a fourth correspondence between the value set and the position information, and the specific position of the value set in the document can be determined according to the fourth correspondence.

其次,在建立数值集合后进行数值检索,该数值检索过程包括下述步骤:Secondly, after the value set is established, the value retrieval is performed. The value retrieval process includes the following steps:

步骤b11、接收检索信息,检索信息包括待检索数值。Step b11: receiving search information, where the search information includes a value to be searched.

具体的,接收用户输入的检索信息,该检索信息包括待检索数值,当然还可以包括其他检索信息。需要说明的是,该待检索数值为数值或数字。Specifically, the search information input by the user is received, and the search information includes the value to be searched, and of course, may also include other search information. It should be noted that the value to be searched is a value or a number.

步骤b21、在数值集合中检索待检索数值。Step b21, searching for the value to be searched in the value set.

具体的,因数值集合中所有中间值都已是具体数值,能够通过“所见即所得”的文字匹配方式进行检索,所以可在数值集合中检索待检索数值。例如区间数值0至9,中间值可取1、2、3、4、5、6、7、8,即由中间值1、2、3、4、5、6、7、8组成区间数值0至9对应的数值集合。若用户输入的待检索数值为3,则在数值集合1、2、3、4、5、6、7、8中检索待检索数值3。可以理解的,待检索数值依然可用于文档中已有内容的检索,可参考现有技术,此处不再赘述。Specifically, since all the intermediate values in the numerical set are already specific values, they can be searched through the "what you see is what you get" text matching method, so the value to be searched can be searched in the numerical set. For example, the interval values are 0 to 9, and the intermediate values can be 1, 2, 3, 4, 5, 6, 7, 8, that is, the numerical set corresponding to the interval values 0 to 9 is composed of the intermediate values 1, 2, 3, 4, 5, 6, 7, 8. If the value to be searched input by the user is 3, the value to be searched 3 is searched in the numerical set 1, 2, 3, 4, 5, 6, 7, 8. It can be understood that the value to be searched can still be used to search for existing content in the document, and reference can be made to the prior art, which will not be repeated here.

步骤b31、若待检索数值在数值集合中,则根据第一对应关系确定检索信息对应的文档,以及根据第四对应关系确定检索信息在文档中的位置。Step b31: If the value to be retrieved is in the value set, determine the document corresponding to the retrieval information according to the first corresponding relationship, and determine the position of the retrieval information in the document according to the fourth corresponding relationship.

具体的,通过在数值集合中检索待检索数值,若待检索数值在数值集合中,则根据第一对应关系确定检索信息对应的文档,从而实现区间数值未直接显示部分的检索。例如区间数值0至9,中间值可取1、2、3、4、5、6、7、8,即由中间值1、2、3、4、5、6、7、8组成区间数值0至9对应的数值集合。若用户输入的待检索数值为3,则在数值集合1、2、3、4、5、6、7、8中检索待检索数值3,刚好能匹配到,则可确定待检索数值3对应的文档。Specifically, by searching for the value to be searched in the value set, if the value to be searched is in the value set, the document corresponding to the search information is determined according to the first corresponding relationship, thereby realizing the search of the portion of the interval value that is not directly displayed. For example, the interval values are 0 to 9, and the middle values can be 1, 2, 3, 4, 5, 6, 7, 8, that is, the value set corresponding to the interval values 0 to 9 is composed of the middle values 1, 2, 3, 4, 5, 6, 7, 8. If the value to be searched input by the user is 3, the value 3 to be searched is searched in the value set 1, 2, 3, 4, 5, 6, 7, 8, and it happens to match, then the document corresponding to the value 3 to be searched can be determined.

进一步,根据第一对应关系确定检索信息对应的文档后,再根据第四对应关系确定检索信息在文档中的位置。例如区间数值0至9对应的位置信息为第2页第3行,则在第2页第3行能够定位到区间数值0至9。也就是说,如果用户输入的待检索数值为3,则在数值集合1、2、3、4、5、6、7、8中检索待检索数值3,刚好能匹配到,则可确定待检索数值3对应的文档。进一步,区间数值0至9对应的位置信息为第2页第3行,则进一步定位待检索数值3对应的区间数值0至9位于文档的第2页第3行。Further, after determining the document corresponding to the search information according to the first corresponding relationship, the position of the search information in the document is determined according to the fourth corresponding relationship. For example, if the position information corresponding to the interval values 0 to 9 is page 2, line 3, then the interval values 0 to 9 can be located on page 2, line 3. In other words, if the value to be searched input by the user is 3, then the value to be searched 3 is searched in the value set 1, 2, 3, 4, 5, 6, 7, 8, and it happens to match, then the document corresponding to the value to be searched 3 can be determined. Further, the position information corresponding to the interval values 0 to 9 is page 2, line 3, then the interval values 0 to 9 corresponding to the value to be searched 3 are further located on page 2, line 3 of the document.

本实施例通过补齐区间数值的部分中间值,实现区间数值部分中间值的检索,提高区间数值检索准确率。并且在检索文档中区间数值时记录区间数值在文档的位置,从而在检索结果中直接显示区间数值在文档中的位置,方便用户查看,提高用户使用体验。This embodiment achieves the retrieval of the intermediate values of the interval values by filling in the intermediate values of the interval values, thereby improving the accuracy of the interval value retrieval. In addition, when searching for the interval values in the document, the position of the interval values in the document is recorded, so that the position of the interval values in the document is directly displayed in the search results, which is convenient for users to view and improves the user experience.

在一个优选实施例中,参考图3,本实施例的区间数值检索方法应用于检索领域,包括计算机本地数据检索、服务器数据检索和云端数据检索等。区间数值是指数值的一个区间段,即一个取值范围。区间数值可以是只包含数字的数字范围,例如0至9;也可以是包含数值单位的取值范围,例如0℃(摄氏度)至9℃,0m(米)至9m,0A(安培)至9A等,其中0℃(摄氏度)、m(米)和A(安培)为数值单位。具体的,该区间数值检索方法包括建立数值集合过程和数值检索过程,以下分别进行说明。In a preferred embodiment, referring to FIG3 , the interval value retrieval method of this embodiment is applied to the retrieval field, including computer local data retrieval, server data retrieval, and cloud data retrieval, etc. An interval value refers to an interval segment of a value, that is, a value range. An interval value can be a numerical range containing only numbers, such as 0 to 9; or it can be a value range containing numerical units, such as 0°C (degrees Celsius) to 9°C, 0m (meter) to 9m, 0A (ampere) to 9A, etc., where 0°C (degrees Celsius), m (meter) and A (ampere) are numerical units. Specifically, the interval value retrieval method includes a process of establishing a numerical set and a numerical retrieval process, which are described separately below.

首先,在检索前要建立数值集合,该数值集合建立过程包括下述步骤:First, before searching, a value set must be established. The process of establishing the value set includes the following steps:

步骤a12、检测文档中的区间数值及区间数值对应的数值单位。Step a12: Detect the interval values in the document and the numerical units corresponding to the interval values.

具体的,本实施例的文档是指包含一定数据的文件,尤其指包含文字的文件,以便能够用于本实施例的文字检索。可以理解,文件格式表现形式较多,本实施例对此不做限定。作为选择,文档包括但不限于word文档、TXT文档、PDF文档、EXCEL表格、PPT文档、网页等。区间数值通常有特定表达方式,可以使用中间符号“-”、“~”、“()”、“[]”等来表示,例如使用中间符号表示的区间数值0-9,0~9,(0,9),[0,9];还可以用表示范围的文字来表达,例如0至9,从0到9等,位于0和9之间等。基于区间数值的特定表达方式,将这些特定表达方式制作为区间数值模型,使用区间数值模型在文档中检测与区间数值模型匹配的区间数值。例如区间数值模型“数字-数字”,如果在文档中检测到符合区间数值模型“数字-数字”的文字,认为是检索到区间数值,例如0-9符合区间数值模型“数字-数字”。通过使用区间数值模型可实现文档中区间数值的自动检测,不需要人工查找文档中的区间数值,效率高,成本低。Specifically, the document of this embodiment refers to a file containing certain data, especially a file containing text, so that it can be used for text retrieval in this embodiment. It can be understood that there are many forms of file format expression, and this embodiment does not limit this. As a choice, the document includes but is not limited to word documents, TXT documents, PDF documents, EXCEL tables, PPT documents, web pages, etc. Interval values usually have specific expressions, which can be represented by intermediate symbols such as "-", "~", "()", "[]", etc., such as interval values 0-9, 0~9, (0,9), [0,9] represented by intermediate symbols; they can also be expressed by text representing ranges, such as 0 to 9, from 0 to 9, etc., between 0 and 9, etc. Based on the specific expressions of interval values, these specific expressions are made into interval value models, and the interval value model is used to detect interval values matching the interval value model in the document. For example, the interval value model "number-number", if the text that conforms to the interval value model "number-number" is detected in the document, it is considered that the interval value is retrieved, for example, 0-9 conforms to the interval value model "number-number". By using the interval value model, automatic detection of interval values in documents can be achieved without the need for manual search for interval values in documents, which is highly efficient and low-cost.

进一步,检测文档中的区间数值后,数值单位通常位于紧邻区间数值后的位置,可将区间数值后紧邻的单位作为该区间数值的数值单位。例如,区间数值0至9℃,则将区间数值0至9后紧邻的单位℃作为该区间数值的数值单位。可以理解的,区间数值和数值单位的位置关系具有多样性,可根据区间数值和数值单位的其他位置关系确定区间数值对应的数值单位,其原理与数值单位位于紧邻区间数值后类似,不再一一说明。Furthermore, after detecting the interval value in the document, the numerical unit is usually located immediately after the interval value, and the unit immediately after the interval value can be used as the numerical unit of the interval value. For example, if the interval value is 0 to 9°C, the unit ℃ immediately after the interval value 0 to 9 is used as the numerical unit of the interval value. It can be understood that the positional relationship between the interval value and the numerical unit is diverse, and the numerical unit corresponding to the interval value can be determined according to other positional relationships between the interval value and the numerical unit. The principle is similar to that of the numerical unit being located immediately after the interval value, and will not be explained one by one.

步骤a22、按照预设算法得到区间数值对应的数值集合,数值集合包括区间数值的中间值和数值单位。Step a22: Obtain a numerical value set corresponding to the interval numerical value according to a preset algorithm, wherein the numerical value set includes the middle value and numerical unit of the interval numerical value.

具体的,检索到文档中的区间数值后,按照预设算法得到区间数值对应的数值集合,每个区间数值对应一个数值集合,数值集合包括区间数值的中间值和数值单位。数值集合包括至少一个中间值,中间值大于区间数值的最小值且小于区间数值的最大值。可以理解,某一区间数值对应的数值集合包含的中间值越多,被检索到的概率就越大,从而提高该区间数值被检索到的概率。例如,区间数值0至9℃,中间值可取1、2、3、4、5、6、7、8,即由中间值1、2、3、4、5、6、7、8以及数值单位℃组成区间数值0至9℃对应的数值集合。但需要说明的是,数值集合并不包含区间数值最小值和最大值之间的所有数值,而是取尽可能多的数值,所取数值越多,即密度越大,区间数值被检索的概率越大。Specifically, after the interval value in the document is retrieved, the value set corresponding to the interval value is obtained according to the preset algorithm. Each interval value corresponds to a value set, and the value set includes the intermediate value and the numerical unit of the interval value. The value set includes at least one intermediate value, and the intermediate value is greater than the minimum value of the interval value and less than the maximum value of the interval value. It can be understood that the more intermediate values a value set corresponding to a certain interval value contains, the greater the probability of being retrieved, thereby increasing the probability of the interval value being retrieved. For example, the interval value is 0 to 9°C, and the intermediate value can be 1, 2, 3, 4, 5, 6, 7, 8, that is, the value set corresponding to the interval value 0 to 9°C is composed of the intermediate values 1, 2, 3, 4, 5, 6, 7, 8 and the numerical unit ℃. However, it should be noted that the value set does not include all values between the minimum and maximum values of the interval value, but takes as many values as possible. The more values taken, that is, the greater the density, the greater the probability of the interval value being retrieved.

步骤a32、建立数值集合与文档的第一对应关系。Step a32: Establish a first correspondence between the value set and the document.

具体的,得到某一区间数值对应的数值集合后,建立数值集合与文档的第一对应关系,即建立数值集合与对应区间数值所在文档的第一对应关系。若文档包含两个以上区间数值,则该文档对应多个数值集合。通常情况下,计算机或服务器或云端数据库存储有大量文档,检索出每个文档中的区间数值,并建立每个文档对应的数值集合,从而建立数据库对应的数值集合。Specifically, after obtaining the value set corresponding to a certain interval value, a first correspondence between the value set and the document is established, that is, a first correspondence between the value set and the document where the corresponding interval value is located is established. If a document contains more than two interval values, the document corresponds to multiple value sets. Usually, a computer or server or cloud database stores a large number of documents, retrieves the interval values in each document, and establishes a value set corresponding to each document, thereby establishing a value set corresponding to the database.

可以理解,建立第一对应关系后数值集合中每个中间值与文档都对应,这样就能实现文档内区间数值的中间值的检索。需要说明的是,文档中某一区间数值对应的数值集合为文档之外新产生数据,并不属于文档本身,也不需要修改文档,而是作为单独的数据另外存储,然后建立数值集合与文档的第一对应关系。It can be understood that after the first correspondence is established, each middle value in the value set corresponds to the document, so that the middle value of the interval value in the document can be retrieved. It should be noted that the value set corresponding to a certain interval value in the document is newly generated data outside the document, which does not belong to the document itself and does not need to modify the document. Instead, it is stored separately as separate data, and then the first correspondence between the value set and the document is established.

其次,在建立数值集合后进行数值检索,该数值检索过程包括下述步骤:Secondly, after the value set is established, the value retrieval is performed. The value retrieval process includes the following steps:

步骤b12、接收检索信息,检索信息包括待检索数值和数值单位。Step b12: receiving search information, where the search information includes the value to be searched and the value unit.

具体的,接收用户输入的检索信息,该检索信息包括待检索数值和数值单位,当然还可以包括其他检索信息。需要说明的是,该待检索数值为数值或数字,数值单位为数学方面或物理方面计量事物的标准量的名称。例如户输入的检索信息为3℃,包括待检索数值3和数值单位℃。Specifically, the search information input by the user is received, and the search information includes the value to be searched and the value unit, and of course, other search information can also be included. It should be noted that the value to be searched is a value or a number, and the value unit is the name of the standard quantity of the measurement object in mathematics or physics. For example, the search information input by the user is 3℃, which includes the value to be searched 3 and the value unit ℃.

步骤b22、在数值集合中检索待检索数值和数值单位。Step b22: Retrieve the value and value unit to be retrieved from the value set.

具体的,因数值集合中所有中间值都已是具体数值以及对应的数值单位,能够通过“所见即所得”的文字匹配方式进行检索,所以可在数值集合中检索待检索数值和数值单位。例如区间数值0至9℃,中间值可取1、2、3、4、5、6、7、8,即由中间值1、2、3、4、5、6、7、8和数值单位℃组成区间数值0至9℃对应的数值集合。若用户输入的待检索数值为3℃,则在数值集合1、2、3、4、5、6、7、8和数值单位℃中检索待检索数值3℃。可以理解的,待检索数值依然可用于文档中已有内容的检索,可参考现有技术,此处不再赘述。Specifically, since all the intermediate values in the numerical set are already specific numerical values and corresponding numerical units, they can be searched through the "what you see is what you get" text matching method, so the numerical value and numerical unit to be searched can be searched in the numerical set. For example, the interval value is 0 to 9°C, and the intermediate values can be 1, 2, 3, 4, 5, 6, 7, 8, that is, the numerical set corresponding to the interval value 0 to 9°C is composed of the intermediate values 1, 2, 3, 4, 5, 6, 7, 8 and the numerical unit ℃. If the numerical value to be searched input by the user is 3°C, the numerical value 3°C to be searched is searched in the numerical set 1, 2, 3, 4, 5, 6, 7, 8 and the numerical unit ℃. It can be understood that the numerical value to be searched can still be used for searching existing content in the document. Please refer to the existing technology and will not be repeated here.

步骤b32、若待检索数值和数值单位在同一数值集合中,则根据第一对应关系确定检索信息对应的文档。Step b32: If the value to be retrieved and the value unit are in the same value set, determine the document corresponding to the retrieval information according to the first corresponding relationship.

具体的,通过在数值集合中检索待检索数值和数值单位,若待检索数值和数值单位在数值集合中,则根据第一对应关系确定检索信息对应的文档,从而实现区间数值未直接显示部分的检索。例如区间数值0至9℃,中间值可取1、2、3、4、5、6、7、8,即由中间值1、2、3、4、5、6、7、8和数值单位℃组成区间数值0至9℃对应的数值集合。若用户输入的待检索数值为3℃,则在数值集合1、2、3、4、5、6、7、8和数值单位℃中检索待检索数值3和数值单位℃,刚好能同时匹配到,则可确定待检索数值3℃对应的文档。Specifically, by searching for the value to be searched and the numerical unit in the numerical set, if the value to be searched and the numerical unit are in the numerical set, the document corresponding to the search information is determined according to the first corresponding relationship, thereby realizing the search of the portion of the interval value that is not directly displayed. For example, the interval value is 0 to 9°C, and the intermediate value can be 1, 2, 3, 4, 5, 6, 7, 8, that is, the numerical set corresponding to the interval value 0 to 9°C is composed of the intermediate values 1, 2, 3, 4, 5, 6, 7, 8 and the numerical unit ℃. If the value to be searched input by the user is 3°C, the value to be searched 3 and the numerical unit ℃ are searched in the numerical set 1, 2, 3, 4, 5, 6, 7, 8 and the numerical unit ℃. If they happen to match at the same time, the document corresponding to the value to be searched 3°C can be determined.

另外,假如用户输入的待检索数值是3.5℃,则在数值集合1、2、3、4、5、6、7、8和数值单位℃中不能匹配成功,但3.5℃确实也在区间数值0至9中,此处也说明,本实施例仅能一定程度上增加区间数值被检索到的概率,但不能实现区间数值的全覆盖检索。并且也可以看出,数值集合所取数值越多,即密度越大,区间数值被检索的概率越大。In addition, if the value to be searched input by the user is 3.5℃, it cannot be successfully matched in the value set 1, 2, 3, 4, 5, 6, 7, 8 and the numerical unit ℃, but 3.5℃ is indeed in the interval value 0 to 9. It is also explained here that this embodiment can only increase the probability of the interval value being searched to a certain extent, but cannot achieve full coverage search of the interval value. It can also be seen that the more values the value set takes, that is, the greater the density, the greater the probability of the interval value being searched.

本实施例通过补齐区间数值的部分中间值,实现区间数值部分中间值的检索,并且使用数值和数值单位两个参数同时进行检索,提高区间数值检索准确率。This embodiment achieves the retrieval of some middle values of interval values by filling some middle values of interval values, and uses two parameters, namely, the value and the unit of the value, to perform the retrieval simultaneously, thereby improving the accuracy of the interval value retrieval.

在一些实施例的区间数值检索方法中,在步骤b3之后还包括步骤:可以理解,因数据库中包括多个文档,每个文档都有对应的数值集合,且一个文档可能对应多个数值集合,不同数值集合之间可能存在相同中间值的情况,所以根据第一对应关系确定检索信息对应的文档的数量可能超过一个。若根据第一对应关系确定检索信息对应的文档的数量超过一个,则按照预设排序规则对所得文档进行排序并显示,预设排序规则可参考现有技术。本实施例出现多个检索结果的情况进行排序显示,方便用户查看检索结果。In some embodiments of the interval value search method, after step b3, the following steps are further included: It can be understood that because the database includes multiple documents, each document has a corresponding value set, and one document may correspond to multiple value sets, and there may be the same intermediate value between different value sets, so the number of documents corresponding to the search information determined according to the first corresponding relationship may exceed one. If the number of documents corresponding to the search information determined according to the first corresponding relationship exceeds one, the obtained documents are sorted and displayed according to the preset sorting rules, and the preset sorting rules can refer to the prior art. In this embodiment, when multiple search results appear, they are sorted and displayed to facilitate users to view the search results.

在一个优选实施例中,本实施例的计算机可读存储介质存储有计算机程序,计算机程序适于处理器进行加载,以执行如上述实施例的区间数值检索方法的步骤。In a preferred embodiment, the computer-readable storage medium of this embodiment stores a computer program, and the computer program is suitable for being loaded by a processor to execute the steps of the interval value retrieval method of the above embodiment.

在一个优选实施例中,本实施例的计算机包括存储器和处理器,存储器中存储有计算机程序,处理器通过调用存储器中存储的计算机程序,执行如上述实施例的区间数值检索方法的步骤。In a preferred embodiment, the computer of this embodiment includes a memory and a processor, the memory stores a computer program, and the processor executes the steps of the interval value retrieval method of the above embodiment by calling the computer program stored in the memory.

本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

以上实施例只为说明本发明的技术构思及特点,其目的在于让熟悉此项技术的人士能够了解本发明的内容并据此实施,并不能限制本发明的保护范围。凡跟本发明权利要求范围所做的均等变化与修饰,均应属于本发明权利要求的涵盖范围。The above embodiments are only for illustrating the technical concept and features of the present invention, and their purpose is to enable people familiar with the technology to understand the content of the present invention and implement it accordingly, and they cannot limit the scope of protection of the present invention. All equivalent changes and modifications made to the scope of the claims of the present invention should fall within the scope of the claims of the present invention.

Claims (10)

一种区间数值检索方法,其特征在于,包括建立数值集合过程和数值检索过程;An interval value retrieval method, characterized by comprising a process of establishing a value set and a process of value retrieval; 所述建立数值集合包括:The establishing of the value set comprises: 步骤a1、检测文档中的区间数值;Step a1, detecting the interval value in the document; 步骤a2、按照预设算法得到所述区间数值对应的数值集合,所述数值集合包括所述区间数值的中间值;Step a2: obtaining a value set corresponding to the interval value according to a preset algorithm, wherein the value set includes the middle value of the interval value; 步骤a3、建立所述数值集合与所述文档的第一对应关系;Step a3, establishing a first corresponding relationship between the value set and the document; 所述数值检索过程包括:The numerical retrieval process includes: 步骤b1、接收检索信息,所述检索信息包括待检索数值;Step b1, receiving search information, wherein the search information includes a value to be searched; 步骤b2、在所述数值集合中检索所述待检索数值;Step b2, searching the value to be searched in the value set; 步骤b3、若所述待检索数值在所述数值集合中,则根据所述第一对应关系确定所述检索信息对应的文档。Step b3: If the value to be retrieved is in the value set, determine the document corresponding to the search information according to the first corresponding relationship. 根据权利要求1所述的区间数值检索方法,其特征在于,所述数值集合包括至少一个中间值,所述中间值大于所述区间数值的最小值且小于所述区间数值的最大值。The interval value retrieval method according to claim 1 is characterized in that the value set includes at least one intermediate value, and the intermediate value is greater than the minimum value of the interval value and less than the maximum value of the interval value. 根据权利要求1所述的区间数值检索方法,其特征在于,所述步骤a2包括:The interval value search method according to claim 1, characterized in that the step a2 comprises: 从所述区间数值的最小值开始按照预设步长逐步增加取值直至所述区间数值的最大值,每增加一次所述预设步长产生一个中间值,由所得所有中间值组成所述区间数值对应的数值集合;或者Starting from the minimum value of the interval value, gradually increasing the value according to the preset step length until the maximum value of the interval value, each increase of the preset step length generates an intermediate value, and all the intermediate values obtained constitute the value set corresponding to the interval value; or 从所述区间数值的最大值开始按照预设步长逐步减小取值直至所述区间数值的最小值,每减小一次所述预设步长产生一个中间值,由所得所有中间值组成所述区间数值对应的数值集合。Starting from the maximum value of the interval value, the value is gradually reduced according to the preset step size until it reaches the minimum value of the interval value. Each time the preset step size is reduced, an intermediate value is generated, and all the intermediate values obtained constitute a value set corresponding to the interval value. 根据权利要求3所述的区间数值检索方法,其特征在于,在所述步骤a1之后所述步骤a2之前还包括:The interval value search method according to claim 3 is characterized in that after step a1 and before step a2, it also includes: 获取所述区间数值对应的数值单位;Get the numerical unit corresponding to the interval value; 根据第二对应关系查找所述数值单位对应的预设步长,所述第二对应关系为所述数值单位和所述预设步长的对应关系。The preset step length corresponding to the numerical unit is searched according to a second corresponding relationship, where the second corresponding relationship is a corresponding relationship between the numerical unit and the preset step length. 根据权利要求3所述的区间数值检索方法,其特征在于,在所述步骤a1之后所述步骤a2之前还包括:The interval value search method according to claim 3 is characterized in that after step a1 and before step a2, it also includes: 获取所述区间数值对应的数值单位及所述文档所属的产品信息;Obtain the numerical unit corresponding to the interval value and the product information to which the document belongs; 根据第三对应关系查找所述数值单位和所述产品信息对应的预设步长,所述第三对应关系为所述预设步长与所述数值单位和产品信息的对应关系。The preset step length corresponding to the numerical unit and the product information is searched according to a third corresponding relationship, where the third corresponding relationship is a corresponding relationship between the preset step length, the numerical unit, and the product information. 根据权利要求1所述的区间数值检索方法,其特征在于,所述步骤a1包括:检测文档中的区间数值以及所述区间数值在所述文档中的位置信息;The interval value retrieval method according to claim 1, characterized in that the step a1 comprises: detecting the interval value in the document and the position information of the interval value in the document; 所述步骤a3包括:建立所述数值集合与所述文档的第一对应关系,以及所述数值集合与所述位置信息的第四对应关系;The step a3 comprises: establishing a first corresponding relationship between the value set and the document, and a fourth corresponding relationship between the value set and the location information; 所述步骤b3包括:若所述待检索数值在所述数值集合中,则根据所述第一对应关系确定所述检索信息对应的文档,以及根据所述第四对应关系确定所述检索信息在所述文档中的位置。The step b3 includes: if the value to be retrieved is in the value set, determining the document corresponding to the search information according to the first corresponding relationship, and determining the position of the search information in the document according to the fourth corresponding relationship. 根据权利要求1所述的区间数值检索方法,其特征在于,所述步骤a1包括:检测文档中的区间数值及所述区间数值对应的数值单位;The interval value search method according to claim 1, characterized in that the step a1 comprises: detecting the interval value in the document and the numerical unit corresponding to the interval value; 所述步骤a2中所述数值集合包括所述区间数值的中间值和所述数值单位;The numerical value set in step a2 includes the middle value of the interval value and the numerical value unit; 所述步骤b1中所述检索信息包括待检索数值和数值单位;The search information in step b1 includes the value to be searched and the value unit; 所述步骤b2包括:在所述数值集合中检索所述待检索数值和所述数值单位;The step b2 comprises: searching the value to be searched and the value unit in the value set; 所述步骤b3中若所述待检索数值在所述数值集合中包括:若所述待检索数值和所述数值单位在同一所述数值集合中。In the step b3, if the value to be retrieved is included in the value set: if the value to be retrieved and the value unit are in the same value set. 根据权利要求1所述的区间数值检索方法,其特征在于,在所述步骤b3之后还包括:The interval value search method according to claim 1, characterized in that after step b3, it also includes: 若根据所述第一对应关系确定所述检索信息对应的文档的数量超过一个,则按照预设排序规则对所得文档进行排序并显示。If it is determined according to the first corresponding relationship that the number of documents corresponding to the search information exceeds one, the obtained documents are sorted and displayed according to a preset sorting rule. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序适于处理器进行加载,以执行如权利要求1至8任一项所述的区间数值检索方法的步骤。A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, and the computer program is suitable for a processor to load to execute the steps of the interval value retrieval method according to any one of claims 1 to 8. 一种计算机,其特征在于,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器通过调用所述存储器中存储的所述计算机程序,执行如权利要求1至8任一项所述的区间数值检索方法的步骤。A computer, characterized in that it comprises a memory and a processor, wherein a computer program is stored in the memory, and the processor executes the steps of the interval value retrieval method according to any one of claims 1 to 8 by calling the computer program stored in the memory.
PCT/CN2024/098256 2023-06-16 2024-06-07 Retrieval method for numeric values within interval, storage medium, and computer Ceased WO2024255714A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202310727602.6 2023-06-16
CN202310727602.6A CN116860828A (en) 2023-06-16 2023-06-16 Interval value retrieval method, storage medium and computer

Publications (1)

Publication Number Publication Date
WO2024255714A1 true WO2024255714A1 (en) 2024-12-19

Family

ID=88220709

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2024/098256 Ceased WO2024255714A1 (en) 2023-06-16 2024-06-07 Retrieval method for numeric values within interval, storage medium, and computer

Country Status (2)

Country Link
CN (1) CN116860828A (en)
WO (1) WO2024255714A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116860828A (en) * 2023-06-16 2023-10-10 深圳市世强元件网络有限公司 Interval value retrieval method, storage medium and computer

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050198027A1 (en) * 2004-03-05 2005-09-08 Oki Electric Industry Co., Ltd. Document retrieval system recognizing types and values of numeric search conditions
CN101295307A (en) * 2007-04-27 2008-10-29 株式会社日立制作所 Document retrieval system and document retrieval method
US20140156670A1 (en) * 2011-06-21 2014-06-05 Nec Corporation Numeric range search device, numeric range search method, and numeric range search program
CN116860828A (en) * 2023-06-16 2023-10-10 深圳市世强元件网络有限公司 Interval value retrieval method, storage medium and computer

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3360617B2 (en) * 1998-08-18 2002-12-24 日本電気株式会社 Numerical information extracting device, numerical information searching device, storage medium storing numerical information extracting program, and storage medium storing numerical information searching program
CN100498783C (en) * 2006-09-01 2009-06-10 北大方正集团有限公司 Method for supporting full text retrieval system, and searching numerical value categorical data domain meanwhile
JP4707198B2 (en) * 2006-10-19 2011-06-22 富士通株式会社 INFORMATION SEARCH PROGRAM, RECORDING MEDIUM CONTAINING THE PROGRAM, INFORMATION SEARCH METHOD, AND INFORMATION SEARCH DEVICE
JP5007743B2 (en) * 2007-05-24 2012-08-22 富士通株式会社 Information search program, recording medium storing the program, information search device, and information search method
CN103593816A (en) * 2013-11-25 2014-02-19 方正国际软件有限公司 Medical history document memorizing device and memorizing method
JP6584723B2 (en) * 2017-04-25 2019-10-02 三菱電機株式会社 SEARCH DEVICE, SEARCH SYSTEM, SEARCH METHOD, AND SEARCH PROGRAM

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050198027A1 (en) * 2004-03-05 2005-09-08 Oki Electric Industry Co., Ltd. Document retrieval system recognizing types and values of numeric search conditions
CN101295307A (en) * 2007-04-27 2008-10-29 株式会社日立制作所 Document retrieval system and document retrieval method
US20140156670A1 (en) * 2011-06-21 2014-06-05 Nec Corporation Numeric range search device, numeric range search method, and numeric range search program
CN116860828A (en) * 2023-06-16 2023-10-10 深圳市世强元件网络有限公司 Interval value retrieval method, storage medium and computer

Also Published As

Publication number Publication date
CN116860828A (en) 2023-10-10

Similar Documents

Publication Publication Date Title
CN112148701B (en) File retrieval method and device
CN112100396B (en) Data processing method and device
US10572544B1 (en) Method and system for document similarity analysis
CN102880623B (en) Personage's searching method of the same name and system
CN114116997A (en) Knowledge question answering method, knowledge question answering device, electronic equipment and storage medium
CN107577755B (en) Searching method
CN109460775B (en) A data filling method and device based on information entropy
CN109388634B (en) Address information processing method, terminal device and computer readable storage medium
CN110741376A (en) Automatic document analysis for different natural languages
CN110795573A (en) Method and device for predicting geographic location of webpage content
CN117171331B (en) Professional field information interaction method, device and equipment based on large language model
CN108763272B (en) A kind of event information analysis method, computer readable storage medium and terminal device
CN114860870A (en) A text error correction method and device
CN115617978A (en) Index name retrieval method, device, electronic equipment and storage medium
CN111008331A (en) Shop-side display method and device, electronic equipment and storage medium
WO2024255714A1 (en) Retrieval method for numeric values within interval, storage medium, and computer
CN114781505A (en) Standard data element matching method and device, storage medium and electronic device
CN116383192A (en) Data query method, device, equipment and storage medium
TWM423854U (en) Document analyzing apparatus
CN109670183A (en) A kind of calculation method, device, equipment and the storage medium of text importance
CN113239257B (en) Information processing method, device, electronic device and storage medium
CN111444345A (en) Dishe name classification method and device
CN114416977A (en) Text difficulty grading evaluation method and device, equipment and storage medium
US9934311B2 (en) Generating unweighted samples from weighted features
CN113642331B (en) Financial named entity identification method and system, storage medium and terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 24822664

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE