Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A vocabulary management method and device based on hash processing

A management method and vocabulary technology, applied in the network field, to achieve the effect of improving efficiency, avoiding wrong conclusions, and improving accuracy

Active Publication Date: 2018-06-08
阿里巴巴(中国)网络技术有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] However, in practical applications, when performing hash processing on vocabulary, there will be situations where the hash values ​​corresponding to multiple vocabulary are the same, but since each hash value in the hash table can only correspond to one vocabulary, so only one of the above multiple vocabulary A vocabulary can be recorded in the hash table

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A vocabulary management method and device based on hash processing
  • A vocabulary management method and device based on hash processing

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] Aiming at the problems existing in the prior art, Embodiment 1 of the present application provides a vocabulary management method based on hash processing, such as figure 1 As shown, the method may specifically include the following steps:

[0026] Step 101, the server maintains a first hash vocabulary and a second hash vocabulary; wherein, the first hash vocabulary is used to record correspondence between hash values ​​and non-conflicting vocabulary, and the second hash vocabulary is used for Record the correspondence between hash values ​​and multiple conflicting words.

[0027] For example, the hash value corresponding to word 1 is hash value 1, the hash value corresponding to word 2 is hash value 1, the hash value corresponding to word 3 is hash value 1, the hash value corresponding to word 4 is hash value 2, and the hash value corresponding to word 5 is The hash value is hash value 3, and the hash value corresponding to word 6 is hash value 4. In this case, there...

Embodiment approach

[0045] Method 1: The server uses the hash value to query the first hash vocabulary; if the hash value is recorded in the first hash vocabulary, the server judges whether there is a word to be processed under the hash value; if so, the server determines the first hash vocabulary Record the vocabulary to be processed under the hash value; if not, the server determines that the hash value is recorded in the first hash vocabulary, but the vocabulary to be processed is not recorded under the hash value; if the hash value is not recorded in the first hash vocabulary, The server uses the hash value to query the second hash vocabulary; if the hash value is recorded in the second hash vocabulary, the server judges whether the word to be processed is recorded under the hash value; if so, the server determines whether the hash value of the second hash vocabulary is under the hash value Record the vocabulary to be processed; if not, the server determines that the hash value is recorded in ...

Embodiment 2

[0068] Based on the same application concept as the method provided in the first embodiment above, a server is also provided in the embodiment of the present application, such as figure 2 As shown, the server specifically includes:

[0069] The maintenance module 11 is used to maintain the first hash vocabulary and the second hash vocabulary; wherein, the first hash vocabulary is used to record the correspondence between hash values ​​and non-conflicting vocabulary, and the second hash The vocabulary is used to record the correspondence between the hash value and multiple conflicting vocabulary;

[0070] The query module 12 is used for performing hash processing on the vocabulary to be processed to obtain a corresponding hash value, and to query the first hash vocabulary and the second hash vocabulary by using the hash value;

[0071] A determining module 13, configured to determine the vocabulary to be processed when the hash value is recorded in the first hash vocabulary o...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present application discloses a vocabulary management method and device based on hash processing. The method includes: the server maintains a first hash vocabulary and a second hash vocabulary; wherein, the first hash vocabulary is used to record hash values ​​and non-conflicting The corresponding relationship between the vocabulary, the second hash vocabulary is used to record the corresponding relationship between the hash value and multiple conflicting vocabulary; for the vocabulary to be processed, the server performs hash processing on the vocabulary to be processed to obtain the corresponding hash value, And utilize described hash value to query described first hash vocabulary and the second hash vocabulary; If described hash value is recorded in the first hash vocabulary or the second hash vocabulary, and record under described hash value With the vocabulary to be processed, the server determines that the vocabulary to be processed is the first type of vocabulary. In the embodiment of the present application, erroneous conclusions caused by the inability to record multiple words in the hash table can be avoided, and the accuracy of word checking can be improved.

Description

technical field [0001] This application relates to the network field, in particular to a vocabulary management method and device based on hash processing. Background technique [0002] In order to check the correctness of the vocabulary, a hash table needs to be maintained on the server. The hash table is used to record the correspondence between the vocabulary and the hash value, and each hash value can only correspond to one vocabulary. When checking a vocabulary, first perform hash processing on the vocabulary to obtain the hash value corresponding to the vocabulary; then, the server uses the vocabulary and the hash value to query the hash table to determine whether the vocabulary and the hash are recorded in the hash table value; if present, the vocabulary is correct; if not, the vocabulary is incorrect. [0003] However, in practical applications, when performing hash processing on vocabulary, there will be situations where the hash values ​​corresponding to multiple v...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F17/30G06F17/28
Inventor 丁世远
Owner 阿里巴巴(中国)网络技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products