leontalbot
leontalbot

Reputation: 2543

Lucene: How to give less weight to Wordnet synonyms?

Looking at the WordnetSynonymParser class, I find no way to attach the weight of word extended (to .setBoost to synonyms to 0.2).

I would want to have "word" -> "word synonym^0.2"

synonym being only 20% the weight of regular word.

Thanks you for your help!

Upvotes: 0

Views: 94

Answers (1)

Mysterion
Mysterion

Reputation: 9320

There is no possibility to do this, since synonym parser just adding synonym tokens at the same position - take a look at the code. Also SynonymMap is just really key-value store.

Upvotes: 1

Related Questions