A quick method for collecting auxiliary information of dictionary pen
By setting up multiple auxiliary databases in the dictionary pen to identify abbreviated words and their meanings in different technical fields, the problem of inaccurate recognition of Chinese and English abbreviated words in the existing technology is solved, and accurate interpretations of characteristic words in different technical fields are achieved.
Patent Information
- Application Number
- CN202310884628.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-19
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2043-07-19
AI Technical Summary
Existing dictionary pens fail to consider the differences in interpretations in different technical fields when recognizing English abbreviations, resulting in inaccurate recognition.
Set up multiple auxiliary databases to store abbreviated words and their meanings in different technical fields, and sort the matching overlap between the text recognition results and these databases to determine the field to which the text belongs, and then accurately output the meanings of the characteristic words.
The dictionary pen improves the accuracy of identifying the meaning of English abbreviations in different technical fields, ensuring accurate interpretation of characteristic words in different fields.
Smart Images

Figure CN117009460B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of dictionary pens, and in particular to a method for quickly collecting auxiliary information of a dictionary pen. Background Art
[0002] A dictionary pen is a portable electronic device that is mainly used to assist language learning and information query. It provides users with convenient and fast language learning and information query tools to help users expand their vocabulary and improve their language comprehension and application capabilities.
[0003] The Chinese patent publication number: CN105335356A discloses the following content: the invention relates to a paper translation method and a translation pen device for semantic recognition, the paper translation method for semantic recognition comprises the following steps: (1) basic encoding of English characters, establishing a character encoding library, a rule library and a font library, combining and arranging the character encoding library, the rule library and the font library to form a coding preparation library; (2) using OCR to scan and recognize the paper English to be translated; (3) using the coding preparation library to encode the recognized character string; (4) performing semantic processing on the encoded character string to complete the semantic description of the encoding; (5) using OCR to recognize word cognitive reasoning to obtain accurately recognized English words; (6) connecting the accurately recognized English words by OCR with an electronic dictionary to realize automatic translation. Compared with the prior art, the invention combines encoding, semantic processing and reasoning with traditional OCR, thereby reducing the error recognition rate caused by traditional OCR text recognition.
[0004] However, the prior art still has the following problems:
[0005] In the prior art, in actual situations, the same English abbreviation has different corresponding meanings in different technical fields. The prior art does not take the above factors into consideration, which makes the dictionary pen inaccurate in recognizing the meaning of English abbreviations. Summary of the invention
[0006] In order to solve the above problems, the present invention provides a method for quickly collecting auxiliary information of a dictionary pen, which comprises:
[0007] Step S1, setting a plurality of auxiliary databases, each of which is used to store abbreviations in different technical fields and interpretation words associated with the abbreviations;
[0008] Step S2, obtaining the text recognition result of the dictionary pen, and determining the technical field to which the text recognition result belongs based on the text recognition result, wherein:
[0009] Matching each word in the text recognition result with the proprietary words in several field databases, calculating the matching overlap between the text recognition result and the different field databases based on the matching results, and obtaining the field database matched by the text recognition result based on the sorting of the matching overlap, and determining the technical field corresponding to the field database as the technical field to which the text recognition result belongs;
[0010] Step S3, identifying whether a characteristic word appears in the text recognition result, and determining an auxiliary database to be called based on the technical field to which the text recognition result belongs, and determining a definition word of the characteristic word based on the content in the auxiliary database;
[0011] Step S4, outputting the interpretation vocabulary corresponding to the text recognition result, including:
[0012] Identify and output the meaning of non-feature words;
[0013] And, the definition words of the characteristic words identified in step S3 are output.
[0014] Furthermore, in step S2, each of the field databases is pre-constructed, and the construction process of each field database includes:
[0015] Step S21, crawling text data of a public literature database in a single technical field;
[0016] Step S22, performing word segmentation processing on each of the text data to obtain a number of words and construct a sample word database;
[0017] Step S23, repeating the steps S21 and S22 to obtain sample vocabulary databases in several technical fields, and determining the public vocabulary in each sample vocabulary database, wherein:
[0018] Calculating the probability of a word appearing in a sample word database, and determining that the word is a public word under a preset word comparison condition;
[0019] The preset vocabulary comparison condition is that the vocabulary appears in each sample vocabulary database and the occurrence probability is higher than a predetermined vocabulary probability threshold;
[0020] Step S24, filtering out public words in the sample vocabulary database to obtain a domain database.
[0021] Furthermore, in step S2, the matching degree between the text recognition result and the databases in different fields is determined, wherein:
[0022] According to formula (1), the matching degree between the text recognition result and the domain database is calculated.
[0023]
[0024] In formula (1), N represents the number of words in the text recognition result, and Ne represents the number of words in the text recognition result that match the proprietary words in the domain database.
[0025] Furthermore, in step S2, each word in the text recognition result is matched with a number of specialized words in a domain database, wherein:
[0026] If a single word is identical to a proprietary word in the domain database, it is determined that the word matches the proprietary word.
[0027] Furthermore, in step S2, a domain database matched by the text recognition result is obtained based on the sorting result, wherein:
[0028] The matching overlap between the text recognition results and different domain databases is arranged in descending order, and the domain database corresponding to the maximum matching overlap is selected as the domain database matched by the text recognition results.
[0029] Furthermore, in step S3, it is identified whether a characteristic word appears in the text recognition result, wherein:
[0030] The vocabulary in the text recognition result is compared with the complete English vocabulary in the standard dictionary database. If the complete English vocabulary identical to the vocabulary does not exist in the standard dictionary database, the vocabulary is determined to be a characteristic vocabulary.
[0031] Furthermore, the standard dictionary database stores a number of complete English words and interpretation words associated with the English words.
[0032] Furthermore, in step S3, the auxiliary database to be called is determined based on the technical field to which the text recognition result belongs, wherein:
[0033] An auxiliary database for storing abbreviations in the technical field and definition words associated with the abbreviations is called.
[0034] Furthermore, in step S3, the definition words of the characteristic words are determined based on the content in the auxiliary database, wherein:
[0035] The characteristic word is compared with a number of abbreviation words in the called auxiliary database. If the auxiliary database contains an abbreviation word identical to the characteristic word, the definition word associated with the abbreviation word is determined as the definition word of the characteristic word.
[0036] Furthermore, in step S4, identifying the interpretation words of non-feature words includes comparing the non-feature words with complete English words in the standard dictionary database. If there is a complete English word in the standard dictionary database that is the same as the non-feature word, then determining the interpretation word associated with the complete English word as the interpretation word of the non-feature word.
[0037] Compared with the prior art, the present invention sets up several auxiliary databases for storing abbreviations in different technical fields and interpretation words associated with the abbreviations, matches each word in the text recognition result with the proprietary words in several field databases, calculates the matching overlap based on the matching results, obtains the field database matched by the text recognition result based on the sorting of the matching overlap, determines the technical field corresponding to the field database as the technical field to which the text recognition result belongs, identifies whether feature words appear in the text recognition result, determines the auxiliary database to be called based on the technical field to which the text recognition result belongs, determines the interpretation words of the feature words based on the content in the auxiliary database, and outputs the interpretation words corresponding to the text recognition result, thereby making the dictionary pen more accurate in recognizing the meaning of English abbreviations in different technical fields.
[0038] In particular, in the present invention, several auxiliary databases are set up, each of which stores abbreviations and interpretation words associated with the abbreviations, thereby providing database support, which enables the interpretation words of the abbreviations in English to be accurately output after pre-determining the technical field to which the text recognition results belong, thereby enabling the dictionary pen to more accurately recognize the meaning of English abbreviations in different technical fields.
[0039] In particular, in the present invention, the domain database matched by the text recognition result is obtained based on the sorting of matching overlap, and the technical field corresponding to the domain database is determined as the technical field to which the text recognition result belongs. In actual situations, the matching overlap characterizes the degree of matching between the text recognition result and the domain database. The greater the matching overlap, the higher the degree of matching between the text recognition result and the domain database. The domain database with the highest matching degree is the domain database matched by the text recognition result. Therefore, the domain database corresponding to the maximum matching overlap in the sorting of matching overlap is determined as the domain database matched by the text recognition result, thereby reliably determining the technical field to which the text recognition result belongs, ensuring that the characteristic words in the text recognition result are subsequently matched with the abbreviation words in the auxiliary database of the corresponding technical field, thereby improving the accuracy of the dictionary pen in identifying the meanings of characteristic words in different technical fields.
[0040] In particular, in the present invention, an auxiliary database is called to store abbreviations of the technical field to which the text recognition result belongs and the meaning words associated with the abbreviations, and the meaning words of the feature words are determined based on the content in the auxiliary database. In actual situations, the feature words, i.e., the English abbreviations, are different from the complete English words in the standard dictionary database. Therefore, matching the feature words with the proprietary words in the field database cannot identify the meaning words of the feature words. Therefore, the feature words are matched with the abbreviations in the auxiliary database. However, since English abbreviations have different meanings in different technical fields, the technical field to which the text recognition result belongs is first determined, and then the feature words are matched with the abbreviations in the auxiliary database that stores the abbreviations of the technical field to which the text recognition result belongs and the meaning words associated with the abbreviations, thereby accurately identifying the meaning words of the feature words, thereby improving the recognition accuracy of the dictionary pen for the meanings of feature words in different technical fields. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 A schematic diagram of the steps of a method for quickly collecting auxiliary information of a dictionary pen according to an embodiment of the invention;
[0042] Figure 2 A schematic diagram of the steps of constructing a domain database according to an embodiment of the invention;
[0043] Figure 3 This is a flow chart for determining whether a characteristic word appears in a recognition result of a text according to an embodiment of the present invention. DETAILED DESCRIPTION
[0044] In order to make the objects and advantages of the present invention more clearly understood, the present invention is further described below in conjunction with embodiments; it should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0045] The preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.
[0046] It should be noted that, in the description of the present invention, terms such as "up", "down", "left", "right", "inside" and "outside" indicating directions or positional relationships are based on the directions or positional relationships shown in the drawings. This is merely for the convenience of description and does not indicate or imply that the device or element must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it cannot be understood as a limitation on the present invention.
[0047] In addition, it should be noted that in the description of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0048] See also Figure 1 As shown, it is a schematic diagram of the steps of the method for quickly collecting auxiliary information of a dictionary pen according to an embodiment of the present invention. The method for quickly collecting auxiliary information of a dictionary pen according to the present invention comprises:
[0049] Step S1, setting a plurality of auxiliary databases, each of which is used to store abbreviations in different technical fields and interpretation words associated with the abbreviations;
[0050] Step S2, obtaining the text recognition result of the dictionary pen, and determining the technical field to which the text recognition result belongs based on the text recognition result, wherein:
[0051] Matching each word in the text recognition result with the proprietary words in several field databases, calculating the matching overlap between the text recognition result and the different field databases based on the matching results, and obtaining the field database matched by the text recognition result based on the sorting of the matching overlap, and determining the technical field corresponding to the field database as the technical field to which the text recognition result belongs;
[0052] Step S3, identifying whether a characteristic word appears in the text recognition result, and determining an auxiliary database to be called based on the technical field to which the text recognition result belongs, and determining a definition word of the characteristic word based on the content in the auxiliary database;
[0053] Step S4, outputting the interpretation vocabulary corresponding to the text recognition result, including:
[0054] Identify and output the meaning of non-feature words;
[0055] And, the definition words of the characteristic words identified in step S3 are output.
[0056] Specifically, the present invention does not limit the construction method of the auxiliary database. In this embodiment, the auxiliary database can be obtained by pre-organizing English abbreviations and corresponding definitions in different technical fields by technical personnel in this field, and the organized English abbreviations and corresponding definitions in the technical fields are stored after establishing an association relationship, thereby constructing the auxiliary database.
[0057] Specifically, in the present invention, the text recognition result at least includes the recognized English characters, but does not include the corresponding interpretations of the English characters. In dictionary pen recognition, it is necessary to prioritize the recognition of the characters in the image, and then output the corresponding meanings based on the characters, which will not be elaborated here.
[0058] Specifically, in the present invention, several auxiliary databases are set up, each of which stores abbreviations and interpretation words associated with the abbreviations, thereby providing database support, which enables the interpretation words of the abbreviations in English to be accurately output after pre-determining the technical field to which the text recognition results belong, thereby enabling the dictionary pen to more accurately recognize the meaning of English abbreviations in different technical fields.
[0059] Specifically, see Figure 2 As shown, a schematic diagram of the steps of constructing a domain database of an embodiment of the invention is shown. In step S2, each domain database is pre-constructed. The construction process of each domain database includes:
[0060] Step S21, crawling text data of a public literature database in a single technical field;
[0061] Step S22, performing word segmentation processing on each of the text data to obtain a number of words and construct a sample word database;
[0062] Step S23, repeating the steps S21 and S22 to obtain sample vocabulary databases in several technical fields, and determining the public vocabulary in each sample vocabulary database, wherein:
[0063] Calculating the probability of a word appearing in a sample word database, and determining that the word is a public word under a preset word comparison condition;
[0064] The preset vocabulary comparison condition is that the vocabulary appears in each sample vocabulary database and the occurrence probability is higher than a predetermined vocabulary probability threshold;
[0065] Step S24, filtering out public words in the sample vocabulary database to obtain a domain database.
[0066] Specifically, in the present embodiment, the predetermined vocabulary probability threshold is obtained by pre-statistics, and a number of proprietary words belonging to a single technical field are selected, and the probability of occurrence of each proprietary word in each sample vocabulary database is counted, and the average probability of occurrence ΔPL is calculated, and the predetermined vocabulary probability threshold P0 is set to be ΔPL×α, where α represents the impact factor, 1.3<α<1.9.
[0067] In this embodiment, word segmentation processing includes deleting punctuation, spaces, numbers and symbols in text data and then segmenting the sentence. In this embodiment, there is no limitation on the word segmentation tool. Technical personnel in this field can select the corresponding word segmentation tool for word segmentation based on needs. This is a prior art and will not be elaborated herein.
[0068] Specifically, in this embodiment, those skilled in the art may screen the specialized words in the field databases again to make each of the field databases more representative.
[0069] Specifically, in step S2, the matching degree between the text recognition result and the databases in different fields is determined, where:
[0070] According to formula (1), the matching degree between the text recognition result and the domain database is calculated.
[0071]
[0072] In formula (1), N represents the number of words in the text recognition result, and Ne represents the number of words in the text recognition result that match the proprietary words in the domain database.
[0073] Specifically, in step S2, each word in the text recognition result is matched with a number of specialized words in the domain database, wherein:
[0074] If a single word is identical to a proprietary word in the domain database, it is determined that the word matches the proprietary word.
[0075] Specifically, in step S2, the domain database matched by the text recognition result is obtained based on the sorting result, wherein:
[0076] The matching overlap between the text recognition results and different domain databases is arranged in descending order, and the domain database corresponding to the maximum matching overlap is selected as the domain database matched by the text recognition results.
[0077] Specifically, in the present invention, the domain database matched by the text recognition result is obtained based on the sorting of matching overlap, and the technical field corresponding to the domain database is determined as the technical field to which the text recognition result belongs. In actual situations, the matching overlap characterizes the degree of matching between the text recognition result and the domain database. The greater the matching overlap, the higher the degree of matching between the text recognition result and the domain database. The domain database with the highest matching degree is the domain database matched by the text recognition result. Therefore, the domain database corresponding to the maximum matching overlap in the sorting of matching overlap is determined as the domain database matched by the text recognition result, thereby reliably determining the technical field to which the text recognition result belongs, ensuring that the characteristic words in the text recognition result are subsequently matched with the abbreviation words in the auxiliary database of the corresponding technical field, thereby improving the accuracy of the dictionary pen in identifying the meanings of characteristic words in different technical fields.
[0078] For more details, please refer to Figure 3 As shown, it is a flow chart of determining whether a characteristic word appears in the recognition result of a text according to an embodiment of the invention. In step S3, whether a characteristic word appears in the recognition result of a text is identified, wherein:
[0079] The vocabulary in the text recognition result is compared with the complete English vocabulary in the standard dictionary database. If the complete English vocabulary identical to the vocabulary does not exist in the standard dictionary database, the vocabulary is determined to be a characteristic vocabulary.
[0080] Specifically, the standard dictionary database stores a number of complete English words and definition words associated with the English words.
[0081] Specifically, the present invention does not limit the specific setting method of the standard dictionary database. It can be a database management system such as MySQL, SQLite, etc. to build a standard dictionary database to store complete English vocabulary and interpretation vocabulary associated with English vocabulary. It only needs to complete the function of setting the standard dictionary database and will not be repeated.
[0082] Specifically, the present invention does not limit the specific method of establishing associations between English words and corresponding interpretation words in the standard dictionary database, and between abbreviation words and corresponding interpretation words in the auxiliary database. In the field of computer technology, there are many ways to establish associations between data. In this embodiment, it is only necessary to select any data construction method that can achieve the above functions, which will not be repeated here.
[0083] Specifically, in step S3, the auxiliary database to be called is determined based on the technical field to which the text recognition result belongs, wherein:
[0084] An auxiliary database for storing abbreviations in the technical field and definition words associated with the abbreviations is called.
[0085] Specifically, in step S3, the definition words of the characteristic words are determined based on the content in the auxiliary database, wherein:
[0086] The characteristic word is compared with a number of abbreviation words in the called auxiliary database. If the auxiliary database contains an abbreviation word identical to the characteristic word, the definition word associated with the abbreviation word is determined as the definition word of the characteristic word.
[0087] Specifically, in the present invention, an auxiliary database is called to store abbreviations of the technical field to which the text recognition result belongs and interpretation words associated with the abbreviations, and the interpretation words of the feature words are determined based on the content in the auxiliary database. In actual situations, the feature words, i.e., English abbreviations, are different from the complete English words in the standard dictionary database. Therefore, matching the feature words with the proprietary words in the field database cannot identify the interpretation words of the feature words. Therefore, the feature words are matched with the abbreviations in the auxiliary database. However, since English abbreviations have different interpretations in different technical fields, the technical field to which the text recognition result belongs is first determined, and then the feature words are matched with the abbreviations in the auxiliary database that stores the abbreviations of the technical field to which the text recognition result belongs and the interpretation words associated with the abbreviations, thereby accurately identifying the interpretation words of the feature words, thereby improving the recognition accuracy of the dictionary pen for the meanings of feature words in different technical fields.
[0088] Specifically, in step S4, identifying the interpretation words of non-feature words includes comparing the non-feature words with complete English words in the standard dictionary database. If there is a complete English word in the standard dictionary database that is the same as the non-feature word, then determining the interpretation word associated with the complete English word as the interpretation word of the non-feature word.
[0089] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.
Claims
1. A method for quickly collecting auxiliary information of a dictionary pen, characterized in that: include: Step S1, setting a plurality of auxiliary databases and a plurality of field databases, wherein each of the auxiliary databases is used to store abbreviations in different technical fields and interpretation words associated with the abbreviations, and each of the field databases is used to store proprietary words in different technical fields; Step S2, obtaining the text recognition result of the dictionary pen, and determining the technical field to which the text recognition result belongs based on the text recognition result, wherein: Matching each word in the text recognition result with the proprietary words in several field databases, calculating the matching overlap between the text recognition result and the different field databases based on the matching results, and obtaining the field database matched by the text recognition result based on the sorting of the matching overlap, and determining the technical field corresponding to the field database as the technical field to which the text recognition result belongs; Step S3, identifying whether a characteristic word appears in the text recognition result, and determining an auxiliary database to be called based on the technical field to which the text recognition result belongs, and determining a definition word of the characteristic word based on the content in the auxiliary database; Step S4, outputting the interpretation vocabulary corresponding to the text recognition result, including: Identify and output the meaning of non-feature words; And, outputting the interpretation vocabulary of the characteristic vocabulary identified in step S3; In step S3, it is identified whether a characteristic word appears in the text recognition result, wherein: Comparing the words in the text recognition result with the complete English words in the standard dictionary database, if the complete English words identical to the words do not exist in the standard dictionary database, determining the words as characteristic words; In step S2, each of the field databases is pre-constructed, and the construction process of each field database includes: Step S21, crawling text data of a public literature database in a single technical field; Step S22, performing word segmentation processing on each of the text data to obtain a number of words and construct a sample word database; Step S23, repeating the steps S21 and S22 to obtain sample vocabulary databases in several technical fields, and determining the public vocabulary in each sample vocabulary database, wherein: Calculating the probability of a word appearing in a sample word database, and determining that the word is a public word under a preset word comparison condition; The preset vocabulary comparison condition is that the vocabulary appears in each sample vocabulary database and the occurrence probability is higher than a predetermined vocabulary probability threshold; Step S24, filtering out public words in the sample vocabulary database to obtain a domain database.
2. The method for quickly collecting auxiliary information of a dictionary pen according to claim 1, characterized in that: In step S2, the matching degree between the text recognition result and the databases in different fields is determined, wherein: The matching degree between the text recognition result and the domain database is calculated according to formula (1), as follows: In formula (1), N represents the number of words in the text recognition result, and Ne represents the number of words in the text recognition result that match the proprietary words in the domain database.
3. The method for quickly collecting auxiliary information of a dictionary pen according to claim 2, characterized in that: In step S2, each word in the text recognition result is matched with the proprietary words in several domain databases, wherein: If a single word is identical to a proprietary word in the domain database, it is determined that the word matches the proprietary word.
4. The method for quickly collecting auxiliary information of a dictionary pen according to claim 3, characterized in that: In step S2, the domain database matched by the text recognition result is obtained based on the sorting result, wherein: The matching overlap between the text recognition results and different domain databases is arranged in descending order, and the domain database corresponding to the maximum matching overlap is selected as the domain database matched by the text recognition results.
5. The method for quickly collecting auxiliary information of a dictionary pen according to claim 1, characterized in that: The standard dictionary database stores a number of complete English words and definition words associated with the English words.
6. The method for quickly collecting auxiliary information of a dictionary pen according to claim 1, characterized in that: In step S3, the auxiliary database to be called is determined based on the technical field to which the text recognition result belongs, wherein: An auxiliary database for storing abbreviations in the technical field and definition words associated with the abbreviations is called.
7. The method for quickly collecting auxiliary information of a dictionary pen according to claim 1, characterized in that: In step S3, the definition words of the characteristic words are determined based on the content in the auxiliary database, wherein: The characteristic word is compared with a number of abbreviation words in the called auxiliary database. If the auxiliary database contains an abbreviation word identical to the characteristic word, the definition word associated with the abbreviation word is determined as the definition word of the characteristic word.
8. The method for quickly collecting auxiliary information of a dictionary pen according to claim 1, characterized in that: In the step S4, identifying the interpretation words of the non-feature words includes comparing the non-feature words with complete English words in a standard dictionary database. If there is a complete English word in the standard dictionary database that is the same as the non-feature word, then determining the interpretation word associated with the complete English word as the interpretation word of the non-feature word.
Citation Information
Patent Citations
Semantic recognition-oriented paper translation method and translation pen device
CN105335356A
Name card information Chinese to English automatic translation method based on domain ontology
CN101216819A
Systems and methods for analyzing requirements
CN102346763A
Method for displaying translation memory match result
CN102902667A
Paraphrasing method and paraphrasing device
CN107729327A
