I have a list of synonyms like below
"gb":["gib","gigabyte"],
"happy":["glad","joyful"],
"television":["tv"]
I need to convert sentence 1 to sentence 2
Is there a synonym API in solar to which if I pass "tv" can give back "television"
what approaches can be taken to solve this?
if you are thinking of using Solr just for this, it would be much much easier just not to. Bringing the whole Solr just for this makes no sense.
Just use a data structure of your choosing (depending on what are your needs it could be a list of hashmaps, a multimap from guava ...) to store the dictionary data, and use plain java.
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.