languages
Class English
java.lang.Object
|
+--languages.Language
|
+--languages.English
- public class English
- extends Language
Implementa le parti dell'algoritmo di catalogazione dipendenti
dalle proprieta' della lingua inglese.
Constructor Summary |
English(java.lang.String _server,
int _port)
|
Method Summary |
java.util.Vector[] |
generalize(java.util.Vector[] terms)
|
TabellaIntorni |
getNeighborhoods()
|
boolean |
isAdjOrNoun(java.lang.String tag)
|
boolean |
mainWord(int i,
int n)
in which position is the main word of a phrase
For english is the last. |
java.lang.String |
morph(java.lang.String word)
perform the morphing of the string. |
java.util.Vector |
parseNounPhrases(java.util.Vector words,
java.util.Vector tags,
java.util.Vector lemmas,
java.util.Vector abstr)
analyzes a sentence described by a series of tags and lemmas and returns
a Vector of Phrase (each one representing a noun phrase)
The Vector abstr if filled with the noun-phrases for the abstract. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
English
public English(java.lang.String _server,
int _port)
getNeighborhoods
public TabellaIntorni getNeighborhoods()
- Returns:
- the table of neighbors for each term in the category
- Overrides:
- getNeighborhoods in class Language
morph
public java.lang.String morph(java.lang.String word)
- perform the morphing of the string.
- Overrides:
- morph in class Language
parseNounPhrases
public java.util.Vector parseNounPhrases(java.util.Vector words,
java.util.Vector tags,
java.util.Vector lemmas,
java.util.Vector abstr)
- analyzes a sentence described by a series of tags and lemmas and returns
a Vector of Phrase (each one representing a noun phrase)
The Vector abstr if filled with the noun-phrases for the abstract.
- Overrides:
- parseNounPhrases in class Language
generalize
public java.util.Vector[] generalize(java.util.Vector[] terms)
- Overrides:
- generalize in class Language
isAdjOrNoun
public boolean isAdjOrNoun(java.lang.String tag)
- Overrides:
- isAdjOrNoun in class Language
mainWord
public boolean mainWord(int i,
int n)
- in which position is the main word of a phrase
For english is the last.
- Overrides:
- mainWord in class Language