Inventive name: A
word sense disambiguation method based on multi-source knowledge fusion and dynamic enhancement Abstract: The application discloses a
word sense disambiguation method based on multi-source knowledge fusion and dynamic enhancement, and belongs to the technical field of
natural language processing. The method comprises the following steps: obtaining a text to be disambiguated and performing cleaning, word segmentation and
annotation processing, and constructing morphological, part-of-speech and semantic class features; representative keywords are extracted by using a YAKE
algorithm combined with part-of-speech filtering to form a candidate
feature set; morphological information is input into a pre-trained
language model to obtain context
semantic representation, part-of-speech and semantic
class information are input into a static word vector model to obtain language knowledge representation, and the two types of representation are input into a long sequence coding model after being fused to capture long-distance semantic dependence; then, the multi-source features are weighted and fused through a self-attention mechanism to obtain
target text representation; in the model training process, difficult samples are screened based on prediction confidence and sample loss value, the difficult samples are subjected to data enhancement, the enhanced samples and original training samples are combined to form a new training sample set, and the model is trained in combination with cross-entropy loss and focal loss; finally, the
word sense class of an ambiguous word in the current context is determined according to the
classification result. The application can reduce the interference of redundant features, improve the accuracy and robustness of
word sense disambiguation in complex contexts, and is especially suitable for semantic understanding tasks in professional fields such as biomedical texts.