|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectgate.util.AbstractFeatureBearer
gate.creole.AbstractResource
gate.creole.AbstractLanguageResource
gate.wordnet.IndexFileWordNetImpl
| Nested Class Summary | |
(package private) class |
IndexFileWordNetImpl.SynsetIterator
iterator for synsets - may load synsets when necessary, not all at once |
| Field Summary | |
private URL |
propertyUrl
JWNL property file |
private net.didion.jwnl.dictionary.Dictionary |
wnDictionary
JWNL dictionary |
| Fields inherited from class gate.creole.AbstractLanguageResource |
dataStore, lrPersistentId |
| Fields inherited from class gate.creole.AbstractResource |
name |
| Fields inherited from class gate.util.AbstractFeatureBearer |
features |
| Fields inherited from interface gate.wordnet.WordNet |
POS_ADJECTIVE, POS_ADVERB, POS_NOUN, POS_VERB |
| Constructor Summary | |
IndexFileWordNetImpl()
|
|
| Method Summary | |
private List |
_lookupWord(String lemma,
net.didion.jwnl.data.IndexWord[] jwIndexWords)
helper method |
DataStore |
getDataStore()
Get the data store that this LR lives in. |
net.didion.jwnl.dictionary.Dictionary |
getJWNLDictionary()
helper method |
Object |
getLRPersistenceId()
Returns the persistence id of this LR, if it has been stored in a datastore. |
LanguageResource |
getParent()
Returns the parent LR of this LR. |
URL |
getPropertyUrl()
|
Iterator |
getSynsets(int _pos)
returns all synsets for specific POS |
Iterator |
getUniqueBeginners()
returns all unique beginners |
String |
getVersion()
returns the WordNet version |
Resource |
init()
Initialise this resource, and return it. |
boolean |
isModified()
Returns true of an LR has been modified since the last sync. |
List |
lookupWord(String lemma)
returns list of WordSense-s for specific lemma |
List |
lookupWord(String lemma,
int pos)
returns list of WordSense-s for specific lemma of the specified POS |
void |
setDataStore(DataStore dataStore)
Set the data store that this LR lives in. |
void |
setLRPersistenceId(Object lrID)
Sets the persistence id of this LR. |
void |
setParent(LanguageResource parentLR)
Sets the parent LR of this LR. |
void |
setPropertyUrl(URL _propertiesUrl)
|
void |
sync()
Save: synchonise the in-memory image of the LR with the persistent image. |
| Methods inherited from class gate.creole.AbstractLanguageResource |
cleanup |
| Methods inherited from class gate.creole.AbstractResource |
checkParameterValues, getBeanInfo, getName, getParameterValue, getParameterValue, removeResourceListeners, setName, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners |
| Methods inherited from class gate.util.AbstractFeatureBearer |
getFeatures, setFeatures |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface gate.Resource |
cleanup, getParameterValue, setParameterValue, setParameterValues |
| Methods inherited from interface gate.util.FeatureBearer |
getFeatures, setFeatures |
| Methods inherited from interface gate.util.NameBearer |
getName, setName |
| Field Detail |
private net.didion.jwnl.dictionary.Dictionary wnDictionary
private URL propertyUrl
| Constructor Detail |
public IndexFileWordNetImpl()
| Method Detail |
public Resource init()
throws ResourceInstantiationException
init in interface Resourceinit in class AbstractResourceResourceInstantiationExceptionpublic net.didion.jwnl.dictionary.Dictionary getJWNLDictionary()
public void setPropertyUrl(URL _propertiesUrl)
setPropertyUrl in interface WordNetpublic URL getPropertyUrl()
getPropertyUrl in interface WordNetpublic String getVersion()
getVersion in interface WordNet
public Iterator getSynsets(int _pos)
throws WordNetException
getSynsets in interface WordNetWordNetExceptionpublic Iterator getUniqueBeginners()
getUniqueBeginners in interface WordNet
public void setParent(LanguageResource parentLR)
throws PersistenceException,
SecurityException
setParent in interface LanguageResourcesetParent in class AbstractLanguageResourcePersistenceException
SecurityException
public LanguageResource getParent()
throws PersistenceException,
SecurityException
getParent in interface LanguageResourcegetParent in class AbstractLanguageResourcePersistenceException
SecurityExceptionpublic boolean isModified()
isModified in interface LanguageResourceisModified in class AbstractLanguageResource
public void sync()
throws PersistenceException,
SecurityException
sync in interface LanguageResourcesync in class AbstractLanguageResourcePersistenceException
SecurityExceptionpublic void setLRPersistenceId(Object lrID)
setLRPersistenceId in interface LanguageResourcesetLRPersistenceId in class AbstractLanguageResourcepublic Object getLRPersistenceId()
getLRPersistenceId in interface LanguageResourcegetLRPersistenceId in class AbstractLanguageResourcepublic DataStore getDataStore()
getDataStore in interface LanguageResourcegetDataStore in class AbstractLanguageResource
public void setDataStore(DataStore dataStore)
throws PersistenceException
setDataStore in interface LanguageResourcesetDataStore in class AbstractLanguageResourcePersistenceException
public List lookupWord(String lemma)
throws WordNetException
lookupWord in interface WordNetWordNetException
public List lookupWord(String lemma,
int pos)
throws WordNetException
lookupWord in interface WordNetWordNetException
private List _lookupWord(String lemma,
net.didion.jwnl.data.IndexWord[] jwIndexWords)
throws WordNetException
WordNetException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||