net.ontopia.topicmaps.classify
Class Term

java.lang.Object
  extended by net.ontopia.topicmaps.classify.Term

public class Term
extends java.lang.Object

PUBLIC: Represents a concept which occurs in the classified content. A term can have many variants, all of which can be found from this object. It also has a score, indicating the importance of the term within the content.


Method Summary
 int getOccurrences()
          PUBLIC: Returns the number of times the term occurred within the classified content.
 java.lang.String getPreferredName()
          PUBLIC: Returns the preferred variant of the term.
 double getScore()
          PUBLIC: Returns the term's score, a number in the range 0-1, indicating its importance within the content.
 java.lang.String getStem()
          PUBLIC: Returns the stem common to all variants of the term.
 Variant[] getVariants()
          PUBLIC: Returns all variant spellings of this term within the content.
 Variant[] getVariantsByRank()
          PUBLIC: Returns all variant spellings of this term within the content, with the most important first.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getStem

public java.lang.String getStem()
PUBLIC: Returns the stem common to all variants of the term. Often, the stem does not actually occur in the content.


getScore

public double getScore()
PUBLIC: Returns the term's score, a number in the range 0-1, indicating its importance within the content.


getVariants

public Variant[] getVariants()
PUBLIC: Returns all variant spellings of this term within the content.


getVariantsByRank

public Variant[] getVariantsByRank()
PUBLIC: Returns all variant spellings of this term within the content, with the most important first.


getOccurrences

public int getOccurrences()
PUBLIC: Returns the number of times the term occurred within the classified content.


getPreferredName

public java.lang.String getPreferredName()
PUBLIC: Returns the preferred variant of the term. This is a form of the term which actually occurred in the classified content.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2000-2010 Ontopia.