extract meaning of a word in C# [closed]
I m doing a project which invoves extracting the semantics of a word. While doing some resaerch I found out it's better to get Synonyms of a word rather than trying to extract semantics.
What is the best way of doing this. I only need to get the synonym of a word.
Please help.
- Find a thesaurus. Pay attention to its licensing. E.g., Roget's Thesaurus. There may be one that is better-suited to being parsed programmatically.
- Parse the thesaurus. For example, you could might store it in a
Dictionary<string,List<string>>
. - Look up entries as needed. How this is done depends on what data structure you stored it in. It's pretty easy in a
Dictionary
.
If you have trouble with a specific step in this process, feel free to ask. Your question is a bit too open-ending for me to know exactly what part to focus on.
精彩评论