classifier
Class Phrase
java.lang.Object
|
+--classifier.Phrase
- public class Phrase
- extends java.lang.Object
Ha metodi per estrarre un insieme di termini composti da una frase e
per estrarre i termini semplici da un termine composto.
Constructor Summary |
Phrase(java.util.Vector _phrase,
Language _language)
Builds a Phrase from a vector of strings. |
Method Summary |
java.lang.String |
elementAt(int n)
|
static void |
main(java.lang.String[] args)
Invocato a linea di comando serve per testare la classe. |
static void |
setBuildingTermsTable(boolean isBuilding)
|
int |
size()
|
java.lang.String |
toString()
Converts to string the phrase. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Phrase
public Phrase(java.util.Vector _phrase,
Language _language)
- Builds a Phrase from a vector of strings.
_phrase is made up of words already normalized (lowercase, singular)
setBuildingTermsTable
public static void setBuildingTermsTable(boolean isBuilding)
size
public int size()
- Returns:
- number of words in the phrase.
toString
public java.lang.String toString()
- Converts to string the phrase.
- Overrides:
- toString in class java.lang.Object
elementAt
public java.lang.String elementAt(int n)
- Returns:
- n-th word in phrase.
main
public static void main(java.lang.String[] args)
- Invocato a linea di comando serve per testare la classe.
Data una lista di phrase ne @return all words