Method and device for generating word vectors
A technology of word vectors and center vectors, which is applied in the fields of instruments, calculations, electrical digital data processing, etc., and can solve problems such as inability to generate, time-consuming, and large amount of computation
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0060] Based on the foregoing embodiments, an embodiment of the present invention provides a method for generating a word vector, and the method is applied to a device for generating a word vector, wherein the device can be set in the above-mentioned terminal and realized by the method for generating a word vector The function can be realized by calling the program code by the processor in the terminal. Of course, the program code can be stored in a computer storage medium. It can be seen that the terminal includes at least a processor and a storage medium.
[0061] This embodiment provides a method for generating word vectors, image 3 It is a schematic flow chart of the method for generating word vectors in Embodiment 1 of the present invention, refer to image 3 As shown, the generation method of the above word vector includes:
[0062] S301: Perform word2vec processing on the acquired first training word segmentation set to obtain a word vector of each training word segme...
Embodiment 2
[0084] Based on the foregoing embodiments, this embodiment provides a method for generating word vectors, which can be applied to terminals. The functions implemented by the method for generating word vectors can be implemented by calling program codes from the processor in the terminal. Of course, the program The code can be stored in a computer storage medium. It can be seen that the terminal includes at least a processor and a storage medium.
[0085] On the basis of the first embodiment above, Figure 4 It is an optional schematic flow chart of the method for generating word vectors in Embodiment 2 of the present invention, refer to Figure 4 As shown, S305 may include:
[0086] S401: From the second training word segmentation set, select training word segmentations that meet the preset conditions;
[0087] Specifically, there are many ways to select training word segments that meet the preset conditions from the second training word segment set. Here, in order to select...
Embodiment 3
[0124]Based on the aforementioned method embodiments, this embodiment provides a device for generating word vectors, which can be set in a terminal, and the first processing module, receiving module, acquiring module, second processing module and determining module in the device, All can be realized by the processor in the terminal, and of course can also be realized by a specific logic circuit; in the process of a specific embodiment, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processing device (DSP) or field programmable gate array (FPGA), etc.
[0125] The device for generating word vectors provided in this embodiment, Image 6 It is a schematic structural diagram of a word vector generation device in Embodiment 3 of the present invention, as Image 6 As shown, the terminal includes a first processing module 61, a receiving module 62, an obtaining module 63, a second processing module 64 and a determining module 65,
[0...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com