Examples of WordSense


Examples of edu.smu.tspell.wordnet.WordSense

   * @throws WordNetException An error occurred retrieving data.
   */
  protected WordSense getSingletonSense(
      RelationshipType type, String wordForm) throws WordNetException
  {
    WordSense sense;
    WordSense[] references =
        getReferences(RelationshipType.PARTICIPLE, wordForm);
    switch (references.length)
    {
      //  Zero is ok; it means that there isn't one
View Full Code Here

Examples of edu.smu.tspell.wordnet.WordSense

      {
        //  Get (and possibly create) the synset
        synset = factory.getSynset(sensePtrs[i]);
        //  Now get the word form in the target synset
        wordForms = synset.getWordForms();
        senses[i] = new WordSense(
            wordForms[sensePtrs[i].getWordNumber() - 1], synset);
      }
      references.putLexicalRelationships(
          wordForm, type, senses);
    }
View Full Code Here

Examples of org.corrib.jonto.wordnet.WordSense

            JSONObject wordNetConcept = new JSONObject();
            wordNetConcept.put("uri", resOne.getURI().toString());
            wordNetConcept.put("name", resOne.getLabel()); //it was getName()
            if(wne!=null)
            {
              WordSense word = new WordSense((WordNetContext)wne.getContext(),wne.getURI(),null);
              wordNetConcept.put("type",word.getPOS()!=null?word.getPOS():"");
            }
            else wordNetConcept.put("type","");
            wordNetConcept.put("mean", resOne.getDescription());
            wordNetConcept.put("count", i);
            groupsJson.add(wordNetConcept);
View Full Code Here

Examples of org.corrib.jonto.wordnet.WordSense

     
      jo.put("uri", resOne.getURI().toString());
      jo.put("name", resOne.getLabel());
      if(wne!=null)
      {
        WordSense word = new WordSense((WordNetContext)wne.getContext(),wne.getURI(),null);
        jo.put("type",word.getPOS()!=null?word.getPOS():"");
      }
      else jo.put("type","");
      jo.put("mean", resOne.getDescription());
      jo.put("thesUri",resOne.getContext().getUri().toString());
     
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.