Handling out-of-vocabulary word in word embedding

조회 수: 2 (최근 30일)
Ismat Mohd Sulaiman
Ismat Mohd Sulaiman 2021년 7월 5일
댓글: Ismat Mohd Sulaiman 2021년 8월 16일
I'm using FastText and my own word embedding on a set of documents. It is being used to detect abbreviations (Y/N) for each word token.
When testing, words that does not have vectors (out-of-vocabulary - OOV words), and discarded and not included in the performance measures (precision, recall, etc.) giving a false result. How do you handle this?
Would you replace all words with NaN values be included in the performance measure? Can the NaN values be replaced with a vector? How would you decide which vector?

답변 (1개)

Prince Kumar
Prince Kumar 2021년 8월 16일
From my understanding your want to handle OOV(out-of-vocabulary) words for your abbreviations detection task. For now MATLAB fastTextWordEmbedding does not handle OOV words.
There are many ways to do it, following are the two popular ones:
  1. Use context around the OOV word. You can use the word embedding of the previous and next word to your current OOV word.
  2. Use synonyms or similar word to get the word embedding for your OOV word.
  댓글 수: 1
Ismat Mohd Sulaiman
Ismat Mohd Sulaiman 2021년 8월 16일
Thank you! I have used the first approach. Excited to try or add on the 2nd approach.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Characters and Strings에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by