The invention provides a commodity search
lexicon generation method and
system in the technical field of
search engine word segmentation, and the method comprises the steps: S1, obtaining a large number of historical search statements, carrying out the preprocessing and marking of each historical search statement, and constructing a
data set; s2, creating a word segmentation model, and setting a
loss function of the word segmentation model; s3, training the word segmentation model through the
data set; s4, presetting a plurality of initial
search words, and creating a commodity search word
library based on each initial search word; s5, acquiring an input real-time search statement, performing word segmentation operation on the real-time search statement through the word segmentation model to obtain a plurality of real-time
search words, and storing each real-time search word into a commodity search word
library; and S6, real-time search behaviors corresponding to the real-time search statements are collected in real time, and the commodity search word
bank is dynamically updated based on the real-time search behaviors. The method has the
advantage that the word segmentation accuracy of the search word is greatly improved.