Package | Description |
---|---|
net.didion.jwnl.data |
Classes for extracting and containing data from the dictionary.
|
net.didion.jwnl.dictionary |
Classes for acessing dictionary information.
|
net.didion.jwnl.dictionary.database |
Classes for accessing databases that contain dictionary information.
|
net.didion.jwnl.dictionary.file |
Classes for accessing files that contain dictionary information.
|
net.didion.jwnl.dictionary.file_manager |
Classes used by
FileBackedDictionary to interface with the filesystem. |
net.didion.jwnl.dictionary.morph | |
net.didion.jwnl.princeton.data |
Implementations of
DictionaryElementFactory for Princeton's release of WordNet. |
net.didion.jwnl.princeton.file |
Implementations of
DictionaryFile used by the various classes of Dictionary to access dictionary files using the naming convention used in Princeton's release of WordNet. |
Modifier and Type | Field and Description |
---|---|
protected POS |
Synset._pos |
static POS |
POS.ADJECTIVE |
static POS |
POS.ADVERB |
static POS |
POS.NOUN |
static POS |
POS.VERB |
Modifier and Type | Method and Description |
---|---|
abstract POS |
PointerTarget.getPOS()
Return this target's POS
|
POS |
Synset.getPOS() |
POS |
Word.getPOS()
Gets the part of speech of this word.
|
POS |
IndexWord.getPOS()
Get the word's part-of-speech.
|
POS |
Exc.getPOS()
Gets the part of speech.
|
static POS |
POS.getPOSForKey(String key)
Return the
POS whose key matches key,
or null if the key does not match any POS. |
static POS |
POS.getPOSForLabel(String label)
Return the
POS whose key matches label,
or null if the label does not match any POS. |
POS |
Pointer.getTargetPOS() |
Modifier and Type | Method and Description |
---|---|
boolean |
PointerType.appliesTo(POS pos)
Whether or not this PointerType can be associated with
pos |
Exc |
FileDictionaryElementFactory.createExc(POS pos,
String line)
Create an Exc from a line in an exception file.
|
Exc |
DatabaseDictionaryElementFactory.createExc(POS pos,
String derivation,
ResultSet rs)
Create an Exc from a row in the database.
|
IndexWord |
FileDictionaryElementFactory.createIndexWord(POS pos,
String line)
Creates an IndexWord from a line in an index file.
|
IndexWord |
DatabaseDictionaryElementFactory.createIndexWord(POS pos,
String lemma,
ResultSet rs)
Create an IndexWord from a row in the database.
|
Synset |
DatabaseDictionaryElementFactory.createSynset(POS pos,
long offset,
ResultSet synset,
ResultSet words,
ResultSet pointers,
ResultSet verbFrames)
Create a Synset from a row in the database.
|
Synset |
FileDictionaryElementFactory.createSynset(POS pos,
String line)
Creates a synset from a line in a data file.
|
static List |
PointerType.getAllPointerTypesForPOS(POS pos) |
IndexWord |
IndexWordSet.getIndexWord(POS p)
Get the IndexWord associated with
p . |
int |
IndexWordSet.getSenseCount(POS pos)
Find out how many senses the word with part-of-speech
pos has. |
boolean |
IndexWordSet.isValidPOS(POS pos)
Return true if there is a word with part-of-speech
pos in
this set. |
void |
IndexWordSet.remove(POS p)
Remove the IndexWord associated with
p from this set. |
Constructor and Description |
---|
Exc(POS pos,
String lemma,
List exceptions)
Creates a new exception entry.
|
IndexWord(String lemma,
POS pos,
long[] synsetOffsets) |
Pointer(PointerTarget source,
int index,
PointerType pointerType,
POS targetPOS,
long targetOffset,
int targetIndex) |
Synset(POS pos,
long offset,
Word[] words,
Pointer[] pointers,
String gloss,
BitSet verbFrames) |
Synset(POS pos,
long offset,
Word[] words,
Pointer[] pointers,
String gloss,
BitSet verbFrames,
boolean isAdjectiveCluster) |
SynsetProxy(POS pos)
The only value that matters is pos, since the
call to getPOS is not forwarded to _source
|
Modifier and Type | Method and Description |
---|---|
POS |
POSKey.getPOS() |
Modifier and Type | Method and Description |
---|---|
abstract Exc |
Dictionary.getException(POS pos,
String derivation)
Lookup
derivation in the exceptions file of part-of-speech
pos and return an Exc object containing the results. |
Exc |
DatabaseBackedDictionary.getException(POS pos,
String derivation) |
Exc |
MapBackedDictionary.getException(POS pos,
String derivation) |
Exc |
FileBackedDictionary.getException(POS pos,
String derivation) |
abstract Iterator |
Dictionary.getExceptionIterator(POS pos)
Return an Iterator over all the Exceptions in the database.
|
Iterator |
DatabaseBackedDictionary.getExceptionIterator(POS pos) |
Iterator |
MapBackedDictionary.getExceptionIterator(POS pos) |
Iterator |
FileBackedDictionary.getExceptionIterator(POS pos) |
abstract IndexWord |
Dictionary.getIndexWord(POS pos,
String lemma)
Look up a word in the database.
|
IndexWord |
DatabaseBackedDictionary.getIndexWord(POS pos,
String lemma) |
IndexWord |
MapBackedDictionary.getIndexWord(POS pos,
String lemma) |
IndexWord |
FileBackedDictionary.getIndexWord(POS pos,
String lemma) |
abstract Iterator |
Dictionary.getIndexWordIterator(POS pos)
Return an Iterator over all the IndexWords of part-of-speech
pos in the database.
|
Iterator |
DatabaseBackedDictionary.getIndexWordIterator(POS pos) |
Iterator |
MapBackedDictionary.getIndexWordIterator(POS pos) |
Iterator |
FileBackedDictionary.getIndexWordIterator(POS pos) |
abstract Iterator |
Dictionary.getIndexWordIterator(POS pos,
String substring)
Return an Iterator over all the IndexWords of part-of-speech pos
whose lemmas contain substring as a substring.
|
Iterator |
DatabaseBackedDictionary.getIndexWordIterator(POS pos,
String substring) |
Iterator |
MapBackedDictionary.getIndexWordIterator(POS pos,
String substring) |
Iterator |
FileBackedDictionary.getIndexWordIterator(POS pos,
String substring) |
abstract IndexWord |
Dictionary.getRandomIndexWord(POS pos) |
IndexWord |
DatabaseBackedDictionary.getRandomIndexWord(POS pos) |
IndexWord |
MapBackedDictionary.getRandomIndexWord(POS pos) |
IndexWord |
FileBackedDictionary.getRandomIndexWord(POS pos) |
abstract Synset |
Dictionary.getSynsetAt(POS pos,
long offset)
Return the
Synset at offset offset from the database. |
Synset |
DatabaseBackedDictionary.getSynsetAt(POS pos,
long offset) |
Synset |
MapBackedDictionary.getSynsetAt(POS pos,
long offset) |
Synset |
FileBackedDictionary.getSynsetAt(POS pos,
long offset) |
abstract Iterator |
Dictionary.getSynsetIterator(POS pos)
Return an Iterator over all the Synsets of part-of-speech pos
in the database.
|
Iterator |
DatabaseBackedDictionary.getSynsetIterator(POS pos) |
Iterator |
MapBackedDictionary.getSynsetIterator(POS pos) |
Iterator |
FileBackedDictionary.getSynsetIterator(POS pos) |
List |
MorphologicalProcessor.lookupAllBaseForms(POS pos,
String derivation)
Return all the base forms of derivation
|
IndexWord |
MorphologicalProcessor.lookupBaseForm(POS pos,
String derivation)
Try to turn derivation into a word that is found in the index file for pos.
|
IndexWord |
Dictionary.lookupIndexWord(POS pos,
String lemma)
Main word lookup procedure.
|
Constructor and Description |
---|
POSKey(POS pos,
long offset) |
POSKey(POS pos,
String lemma) |
Modifier and Type | Method and Description |
---|---|
protected Query |
DatabaseManagerImpl.createPOSIdQuery(POS pos,
int id,
String sql) |
protected Query |
DatabaseManagerImpl.createPOSOffsetQuery(POS pos,
long offset,
String sql) |
protected Query |
DatabaseManagerImpl.createPOSQuery(POS pos,
String sql) |
protected Query |
DatabaseManagerImpl.createPOSStringQuery(POS pos,
String str,
String sql) |
Query |
DatabaseManager.getExceptionQuery(POS pos,
String derivation) |
Query |
DatabaseManagerImpl.getExceptionQuery(POS pos,
String derivation) |
Query |
DatabaseManager.getExceptionsQuery(POS pos) |
Query |
DatabaseManagerImpl.getExceptionsQuery(POS pos) |
Query |
DatabaseManager.getIndexWordLemmasQuery(POS pos) |
Query |
DatabaseManagerImpl.getIndexWordLemmasQuery(POS pos) |
Query |
DatabaseManager.getIndexWordLemmasQuery(POS pos,
String substring) |
Query |
DatabaseManagerImpl.getIndexWordLemmasQuery(POS pos,
String substring) |
Query |
DatabaseManager.getIndexWordSynsetsQuery(POS pos,
String lemma) |
Query |
DatabaseManagerImpl.getIndexWordSynsetsQuery(POS pos,
String lemma) |
Query |
DatabaseManager.getPointerQuery(POS pos,
long offset) |
Query |
DatabaseManagerImpl.getPointerQuery(POS pos,
long offset) |
Query |
DatabaseManager.getRandomIndexWordQuery(POS pos) |
Query |
DatabaseManagerImpl.getRandomIndexWordQuery(POS pos) |
Query |
DatabaseManager.getSynsetQuery(POS pos,
long offset) |
Query |
DatabaseManagerImpl.getSynsetQuery(POS pos,
long offset) |
Query |
DatabaseManager.getSynsetsQuery(POS pos) |
Query |
DatabaseManagerImpl.getSynsetsQuery(POS pos) |
Query |
SenseAndUsageDatabaseManager.getSynsetWordQuery(POS pos,
long offset) |
Query |
DatabaseManager.getSynsetWordQuery(POS pos,
long offset) |
Query |
DatabaseManagerImpl.getSynsetWordQuery(POS pos,
long offset) |
Query |
DatabaseManager.getVerbFrameQuery(POS pos,
long offset) |
Query |
DatabaseManagerImpl.getVerbFrameQuery(POS pos,
long offset) |
Modifier and Type | Method and Description |
---|---|
POS |
DictionaryFile.getPOS()
The POS associated with this file.
|
POS |
AbstractDictionaryFile.getPOS()
The POS associated with this file.
|
Modifier and Type | Method and Description |
---|---|
DictionaryFile |
DictionaryCatalog.get(POS pos) |
DictionaryFile |
DictionaryCatalogSet.getDictionaryFile(POS pos,
DictionaryFileType fileType) |
DictionaryFile |
DictionaryFile.newInstance(String path,
POS pos,
DictionaryFileType fileType)
Create a new instance of the dictionary file
|
Constructor and Description |
---|
AbstractDictionaryFile(String path,
POS pos,
DictionaryFileType fileType) |
Modifier and Type | Method and Description |
---|---|
DictionaryFile |
FileManagerImpl.getFile(POS pos,
DictionaryFileType fileType)
Gets the file from a part of speech and file type (ie data.noun).
|
long |
FileManagerImpl.getFirstLinePointer(POS pos,
DictionaryFileType fileType)
Return the first valid line pointer in the specified file.
|
long |
FileManager.getFirstLinePointer(POS pos,
DictionaryFileType fileType)
Return the first valid line pointer in the specified file.
|
long |
FileManagerImpl.getIndexedLinePointer(POS pos,
DictionaryFileType fileType,
String target)
Get indexed line pointer is typically used to find a word within an index file matching a given part of speech.
|
long |
FileManager.getIndexedLinePointer(POS pos,
DictionaryFileType fileType,
String index)
Search for the line whose first word is index (that is, that begins with
index followed by a space or tab).
|
long |
FileManagerImpl.getMatchingLinePointer(POS pos,
DictionaryFileType fileType,
long offset,
String substring)
Search for a line whose index word contains substring, starting at offset.
|
long |
FileManager.getMatchingLinePointer(POS pos,
DictionaryFileType fileType,
long offset,
String substring)
Search for a line whose index word contains substring, starting at offset.
|
long |
FileManagerImpl.getNextLinePointer(POS pos,
DictionaryFileType fileType,
long offset)
Search for the line following the line that begins at offset.
|
long |
FileManager.getNextLinePointer(POS pos,
DictionaryFileType fileType,
long offset)
Search for the line following the line that begins at offset.
|
long |
FileManagerImpl.getRandomLinePointer(POS pos,
DictionaryFileType fileType)
Return a randomly-chosen line pointer (offset of the beginning of a line).
|
long |
FileManager.getRandomLinePointer(POS pos,
DictionaryFileType index)
Return a randomly-chosen line pointer (offset of the beginning of a line).
|
String |
FileManagerImpl.readLineAt(POS pos,
DictionaryFileType fileType,
long offset)
Read the line that begins at file offset offset.
|
String |
FileManager.readLineAt(POS pos,
DictionaryFileType fileType,
long offset)
Read the line that begins at file offset offset.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
AbstractDelegatingOperation.delegate(POS pos,
String lemma,
BaseFormSet forms,
String key) |
boolean |
Operation.execute(POS pos,
String lemma,
BaseFormSet baseForms)
Execute the operation.
|
boolean |
DetachSuffixesOperation.execute(POS pos,
String derivation,
BaseFormSet forms) |
boolean |
TokenizerOperation.execute(POS pos,
String lemma,
BaseFormSet forms) |
boolean |
RemovePrepPhrasesOperation.execute(POS pos,
String lemma,
BaseFormSet baseForm) |
boolean |
LookupIndexWordOperation.execute(POS pos,
String lemma,
BaseFormSet baseForms) |
boolean |
LookupExceptionsOperation.execute(POS pos,
String derivation,
BaseFormSet form) |
List |
DefaultMorphologicalProcessor.lookupAllBaseForms(POS pos,
String derivation) |
IndexWord |
DefaultMorphologicalProcessor.lookupBaseForm(POS pos,
String derivation)
Lookup the base form of a word.
|
Modifier and Type | Method and Description |
---|---|
Exc |
AbstractPrincetonFileDictionaryElementFactory.createExc(POS pos,
String line) |
Exc |
AbstractPrincetonDatabaseDictionaryElementFactory.createExc(POS pos,
String derivation,
ResultSet rs) |
IndexWord |
AbstractPrincetonFileDictionaryElementFactory.createIndexWord(POS pos,
String line) |
IndexWord |
AbstractPrincetonDatabaseDictionaryElementFactory.createIndexWord(POS pos,
String lemma,
ResultSet rs) |
Synset |
AbstractPrincetonDatabaseDictionaryElementFactory.createSynset(POS pos,
long offset,
ResultSet synset,
ResultSet words,
ResultSet pointers,
ResultSet verbFrames) |
Synset |
PrincetonWN30DatabaseDictionaryElementFactory.createSynset(POS pos,
long offset,
ResultSet synset,
ResultSet words,
ResultSet pointers,
ResultSet verbFrames)
Create a synset.
|
Synset |
AbstractPrincetonFileDictionaryElementFactory.createSynset(POS pos,
String line) |
Modifier and Type | Method and Description |
---|---|
DictionaryFile |
PrincetonObjectDictionaryFile.newInstance(String path,
POS pos,
DictionaryFileType fileType) |
DictionaryFile |
PrincetonChannelDictionaryFile.newInstance(String path,
POS pos,
DictionaryFileType fileType) |
DictionaryFile |
PrincetonRandomAccessDictionaryFile.newInstance(String path,
POS pos,
DictionaryFileType fileType) |
Constructor and Description |
---|
AbstractPrincetonDictionaryFile(String path,
POS pos,
DictionaryFileType fileType) |
AbstractPrincetonRandomAccessDictionaryFile(String path,
POS pos,
DictionaryFileType fileType) |
PrincetonChannelDictionaryFile(String path,
POS pos,
DictionaryFileType fileType) |
PrincetonObjectDictionaryFile(String path,
POS pos,
DictionaryFileType fileType) |
PrincetonRandomAccessDictionaryFile(String path,
POS pos,
DictionaryFileType fileType) |
PrincetonRandomAccessDictionaryFile(String path,
POS pos,
DictionaryFileType fileType,
String permissions) |
Copyright © 2020. All rights reserved.