Package edu.mit.jwi.item

Examples of edu.mit.jwi.item.POS


  /**
   * Get a list of possible stems. Assume we are looking up a noun.
   */
  public static List<String> getStems(String word, String posTag, IDictionary iDictionary) {
   
    POS pos = POS.getPartOfSpeech(posTag.charAt(0));
    if(pos == null) {
      return new ArrayList<String>();
    }
   
    WordnetStemmer wordnetStemmer = new WordnetStemmer(iDictionary);
View Full Code Here


  public static HashSet<String> getSynonyms(IDictionary iDictionary, String word, String posTag, boolean firstSenseOnly) {
   
    // need a set to avoid repeating words
    HashSet<String> synonyms = new HashSet<String>();
   
    POS pos = POS.getPartOfSpeech(posTag.charAt(0));
    if(pos == null) {
      return synonyms;
    }
   
    IIndexWord iIndexWord = iDictionary.getIndexWord(word, pos);
View Full Code Here

   */
  public static HashSet<String> getHypernyms(IDictionary dict, String word, String posTag, boolean firstSenseOnly) {

    HashSet<String> hypernyms = new HashSet<String>();
   
    POS pos = POS.getPartOfSpeech(posTag.charAt(0));
    if(pos == null) {
      return hypernyms;
    }
   
    IIndexWord iIndexWord = dict.getIndexWord(word, pos);
View Full Code Here

  public static HashSet<String> getHyperHypernyms(IDictionary dict, String word, String posTag, boolean firstSenseOnly) {

    HashSet<String> hypernyms = new HashSet<String>();
   
    POS pos = POS.getPartOfSpeech(posTag.charAt(0));
    if(pos == null) {
      return hypernyms;
    }
   
    IIndexWord iIndexWord = dict.getIndexWord(word, pos);
View Full Code Here

  /**
   * Get a list of possible stems. Assume we are looking up a noun.
   */
  public static List<String> getStems(String word, String posTag, IDictionary iDictionary) {
   
    POS pos = POS.getPartOfSpeech(posTag.charAt(0));
    if(pos == null) {
      return new ArrayList<String>();
    }
   
    WordnetStemmer wordnetStemmer = new WordnetStemmer(iDictionary);
View Full Code Here

  public static HashSet<String> getSynonyms(IDictionary iDictionary, String word, String posTag, boolean firstSenseOnly) {
   
    // need a set to avoid repeating words
    HashSet<String> synonyms = new HashSet<String>();
   
    POS pos = POS.getPartOfSpeech(posTag.charAt(0));
    if(pos == null) {
      return synonyms;
    }
   
    IIndexWord iIndexWord = iDictionary.getIndexWord(word, pos);
View Full Code Here

   */
  public static HashSet<String> getHypernyms(IDictionary dict, String word, String posTag, boolean firstSenseOnly) {

    HashSet<String> hypernyms = new HashSet<String>();
   
    POS pos = POS.getPartOfSpeech(posTag.charAt(0));
    if(pos == null) {
      return hypernyms;
    }
   
    IIndexWord iIndexWord = dict.getIndexWord(word, pos);
View Full Code Here

  public static HashSet<String> getHyperHypernyms(IDictionary dict, String word, String posTag, boolean firstSenseOnly) {

    HashSet<String> hypernyms = new HashSet<String>();
   
    POS pos = POS.getPartOfSpeech(posTag.charAt(0));
    if(pos == null) {
      return hypernyms;
    }
   
    IIndexWord iIndexWord = dict.getIndexWord(word, pos);
View Full Code Here

TOP

Related Classes of edu.mit.jwi.item.POS

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.