|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eml.sir.gn.GermaNetObject
An instance of GermaNetObject makes the information of the GermaNet accessible. Use the getWordsense/s() and getSynsets() methods. Then use get() methods on the WordSense resp. Synset instances thus obtained.
Constructor Summary | |
GermaNetObject()
Create a new instance of GermaNetObject. |
|
GermaNetObject(java.util.TreeMap nounsWos,
java.util.HashMap nounsSyn,
java.util.TreeMap verbsWos,
java.util.HashMap verbsSyn,
java.util.TreeMap adjesWos,
java.util.HashMap adjesSyn)
Create a new instance of GermaNetObject. |
Method Summary | |
java.util.TreeSet |
getAllSynsets(char pos)
Return all Synsets of this GermaNetObject. |
java.util.TreeSet |
getAllWordSenses(char pos)
Return all WordSenses of this GermaNetObject. |
java.util.ArrayList |
getSynsets(java.lang.String graphs)
Return a list of synsets that correlate to word senses, with the same graphemic representation. |
java.util.ArrayList |
getSynsets(java.lang.String graphs,
char pos)
Return a list of synsets that correlate to word senses, with the same graphemic representation and part of speech. |
int |
getSynsetsAmount(char pos)
Return the number of Synsets in this GermaNetObject. |
WordSense |
getWordSense(java.lang.String graphs,
char pos,
int sense)
Return a WordSense with specified parameters. |
java.util.ArrayList |
getWordSenses(java.lang.String graphs)
Return a list of word senses, with the same graphemic representation. |
java.util.ArrayList |
getWordSenses(java.lang.String graphs,
char pos)
Return a list of word senses, which constitute a lexeme. |
int |
getWordSensesAmount(char pos)
Return the number of WordSenses in this GermaNetObject. |
static GermaNetObject |
load(java.lang.String fileName)
Load a serialized instance of GermaNetObject. |
void |
printAssociations()
Print diagnostic information on the standard output stream. |
void |
printInfo()
Write some information about this GermaNetObject on the standard output stream. |
boolean |
save(java.lang.String fileName)
Serialize an instance of GermaNetObject and save it to a file. |
java.util.Set |
wordSensesKeySet(char pos)
Return the keys to all word senses of a specific part of speech. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GermaNetObject()
public GermaNetObject(java.util.TreeMap nounsWos, java.util.HashMap nounsSyn, java.util.TreeMap verbsWos, java.util.HashMap verbsSyn, java.util.TreeMap adjesWos, java.util.HashMap adjesSyn)
Method Detail |
public WordSense getWordSense(java.lang.String graphs, char pos, int sense)
graphs
- Graphemic representation of the requested WordSense.pos
- Part of speech of the requested WordSense.sense
- Sense number of the requested WordSense.
public java.util.ArrayList getWordSenses(java.lang.String graphs, char pos)
graphs
- Graphemic representation of the requested WordSense.pos
- Part of speech of the requested WordSense.
public java.util.ArrayList getSynsets(java.lang.String graphs, char pos)
graphs
- Graphemic representation of the requested Synsets.
public java.util.ArrayList getWordSenses(java.lang.String graphs)
graphs
- Graphemic representation of the requested WordSense.
public java.util.ArrayList getSynsets(java.lang.String graphs)
graphs
- Graphemic representation of the requested Synsets.
public java.util.Set wordSensesKeySet(char pos)
public int getWordSensesAmount(char pos)
public java.util.TreeSet getAllWordSenses(char pos)
public int getSynsetsAmount(char pos)
public java.util.TreeSet getAllSynsets(char pos)
public void printInfo()
public void printAssociations()
public boolean save(java.lang.String fileName)
fileName
- Complete path and file name.public static GermaNetObject load(java.lang.String fileName)
fileName
- Complete path and file name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |