// Path: src/main/java/unsw/curation/api/twitterdomain/SynonymDomain.java
// public class SynonymDomain {
//     
//     public SynonymDomain(){}
//     public SynonymDomain(String word, String synset)
//     {
//         this.word=word;
//         this.synset=synset;
//     }
//     public String word;
//     public String synset;
//     
//     public void setWord(String word)
//     {
//         this.word=word;
//     }
//     public String getWord()
//     {
//         return this.word;
//     }
//     public void setSynset(String synset)
//     {
//         this.synset=synset;
//     }
//     public String getSynset()
//     {
//         return synset;
//     }
// }


import edu.mit.jwi.Dictionary;
import edu.mit.jwi.IDictionary;
import edu.mit.jwi.item.IIndexWord;
import edu.mit.jwi.item.ISynset;
import edu.mit.jwi.item.IWord;
import edu.mit.jwi.item.IWordID;
import edu.mit.jwi.item.POS;
import edu.mit.jwi.morph.WordnetStemmer;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import unsw.curation.api.twitterdomain.SynonymDomain;


package unsw.curation.api.twitter;


/**
 *
 * @author Alireza
 */
public class Synonyms {
    KeywordExtraction EX;
    private String path="C:\\Program Files (x86)\\WordNet\\2.1\\dict\\";
    public Synonyms() throws IOException
    {
      EX=new KeywordExtraction();
    }
    public Synonyms(String dictionaryFilePath) throws IOException
    {
      path=dictionaryFilePath;  
      EX=new KeywordExtraction();
    }
    
    

// Path: src/main/java/unsw/curation/api/twitterdomain/SynonymDomain.java
// public class SynonymDomain {
//     
//     public SynonymDomain(){}
//     public SynonymDomain(String word, String synset)
//     {
//         this.word=word;
//         this.synset=synset;
//     }
//     public String word;
//     public String synset;
//     
//     public void setWord(String word)
//     {
//         this.word=word;
//     }
//     public String getWord()
//     {
//         return this.word;
//     }
//     public void setSynset(String synset)
//     {
//         this.synset=synset;
//     }
//     public String getSynset()
//     {
//         return synset;
//     }
// }


// Path: src/main/java/unsw/curation/api/twitter/Synonyms.java
import edu.mit.jwi.Dictionary;
import edu.mit.jwi.IDictionary;
import edu.mit.jwi.item.IIndexWord;
import edu.mit.jwi.item.ISynset;
import edu.mit.jwi.item.IWord;
import edu.mit.jwi.item.IWordID;
import edu.mit.jwi.item.POS;
import edu.mit.jwi.morph.WordnetStemmer;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import unsw.curation.api.twitterdomain.SynonymDomain;


package unsw.curation.api.twitter;


/**
 *
 * @author Alireza
 */
public class Synonyms {
    KeywordExtraction EX;
    private String path="C:\\Program Files (x86)\\WordNet\\2.1\\dict\\";
    public Synonyms() throws IOException
    {
      EX=new KeywordExtraction();
    }
    public Synonyms(String dictionaryFilePath) throws IOException
    {
      path=dictionaryFilePath;  
      EX=new KeywordExtraction();
    }
    
    

    public List<SynonymDomain> ExtractSynsetsSentence(String Sentence,File englishStopwordsFilePath) throws IOException, Exception
