|
GATE Version 3.1-2270 |
|||||||||
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
public class IndexFileWordNetImpl
Field Summary |
---|
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 | |
---|---|
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 |
Constructor Detail |
---|
public IndexFileWordNetImpl()
Method Detail |
---|
public Resource init() throws ResourceInstantiationException
init
in interface Resource
init
in class AbstractResource
ResourceInstantiationException
public net.didion.jwnl.dictionary.Dictionary getJWNLDictionary()
public void setPropertyUrl(URL _propertiesUrl)
setPropertyUrl
in interface WordNet
public URL getPropertyUrl()
getPropertyUrl
in interface WordNet
public String getVersion()
getVersion
in interface WordNet
public Iterator getSynsets(int _pos) throws WordNetException
getSynsets
in interface WordNet
WordNetException
public Iterator getUniqueBeginners()
getUniqueBeginners
in interface WordNet
public void setParent(LanguageResource parentLR) throws PersistenceException, SecurityException
setParent
in interface LanguageResource
setParent
in class AbstractLanguageResource
PersistenceException
SecurityException
public LanguageResource getParent() throws PersistenceException, SecurityException
getParent
in interface LanguageResource
getParent
in class AbstractLanguageResource
PersistenceException
SecurityException
public boolean isModified()
isModified
in interface LanguageResource
isModified
in class AbstractLanguageResource
public void sync() throws PersistenceException, SecurityException
sync
in interface LanguageResource
sync
in class AbstractLanguageResource
PersistenceException
SecurityException
public void setLRPersistenceId(Object lrID)
setLRPersistenceId
in interface LanguageResource
setLRPersistenceId
in class AbstractLanguageResource
public Object getLRPersistenceId()
getLRPersistenceId
in interface LanguageResource
getLRPersistenceId
in class AbstractLanguageResource
public DataStore getDataStore()
getDataStore
in interface LanguageResource
getDataStore
in class AbstractLanguageResource
public void setDataStore(DataStore dataStore) throws PersistenceException
setDataStore
in interface LanguageResource
setDataStore
in class AbstractLanguageResource
PersistenceException
public List lookupWord(String lemma) throws WordNetException
lookupWord
in interface WordNet
WordNetException
public List lookupWord(String lemma, int pos) throws WordNetException
lookupWord
in interface WordNet
WordNetException
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |