Package edu.smu.tspell.wordnet

Examples of edu.smu.tspell.wordnet.WordNetException


  {
    int index = getWordIndex(
        TextTranslator.translateToExternalFormat(wordForm));
    if (index < 0)
    {
      throw new WordNetException("Attempted to get the tag count for '" +
          wordForm + "' from a synset that does not contain it.");
    }
    if (tagCounts[index] < 0)
    {
      SenseIndexEntry entry = getIndexEntry(senseKeys[index]);
View Full Code Here


      case 1:
        sense = references[0];
        break;
      //  More than one is invalid
      default:
        throw new WordNetException(
            "Can't resolve to a exactly one reference of type " +
            type + ": " + this);
    }
    return sense;
  }
View Full Code Here

TOP

Related Classes of edu.smu.tspell.wordnet.WordNetException

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.