简体   繁体   中英

NLP - What is the best/most accurate method of detecting the meaning of a word?

I am looking for an accurate method of detecting the meaning of a word based on a context. Eg the word 'base' could have several meanings: bottom, military, main part etc.

I know that SpaCy can detect difference in meaning based on Part Of Speech (POS) tags, eg duck noun vs verb, but in the example above this technique does not work. Other method eg Word2Vec works on single word embedding (i think) so its not good neither.

Any ideas how to tackle this using Python?

(1) Train an LSTM to predict the next word in the sequence. The state of the RNN is then a representation of the sentence so far. (2) The predicted word will take into account the context, so will be a disambiguated version of the actual word found. (3) To improve the predictions use a BiLSTM, so it also takes into account the following context.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM