languages
Class Italian

java.lang.Object
  |
  +--languages.Language
        |
        +--languages.Italian

public class Italian
extends Language

Implementa le parti dell'algoritmo di catalogazione dipendenti dalle proprieta' della lingua inglese.


Constructor Summary
Italian(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
 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 noun phrases (each one a vector of String made with lemmas) The Vector abstr if filled with a string for each noun phrase.
 
Methods inherited from class languages.Language
getPort, getServer, isInterestingTerm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Italian

public Italian(java.lang.String _server,
               int _port)
Method Detail

morph

public java.lang.String morph(java.lang.String word)
perform the morphing of the string.
Overrides:
morph in class Language

getNeighborhoods

public TabellaIntorni getNeighborhoods()
Returns:
the table of neighbors for each term in the category
Overrides:
getNeighborhoods 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 noun phrases (each one a vector of String made with lemmas) The Vector abstr if filled with a string for each noun phrase.
Overrides:
parseNounPhrases in class Language

isAdjOrNoun

public boolean isAdjOrNoun(java.lang.String tag)
Overrides:
isAdjOrNoun in class Language

generalize

public java.util.Vector[] generalize(java.util.Vector[] terms)
Overrides:
generalize in class Language

mainWord

public boolean mainWord(int i,
                        int n)
in which position is the main word of a phrase
Overrides:
mainWord in class Language