| Package | Description |
|---|---|
| edu.mit.jwi |
Provides the main dictionary interface and a default implementation.
|
| edu.mit.jwi.data |
Provides classes and interfaces for the creation, searching, and interpretation of dictionary data sources.
|
| edu.mit.jwi.data.parse |
Provides classes and interfaces that parse lines from Wordnet files.
|
| edu.mit.jwi.item |
Provides classes and interfaces that represent the Wordnet data structures.
|
| edu.mit.jwi.morph |
Provides several simple classes that can be used to find the stems of words using Wordnet.
|
| Modifier and Type | Field and Description |
|---|---|
protected Map<POS,Map<IExceptionEntryID,IExceptionEntry>> |
RAMDictionary.DictionaryData.exceptions |
protected Map<POS,Map<IIndexWordID,IIndexWord>> |
RAMDictionary.DictionaryData.idxWords |
protected Map<POS,Map<ISynsetID,ISynset>> |
RAMDictionary.DictionaryData.synsets |
| Modifier and Type | Method and Description |
|---|---|
POS |
DataSourceDictionary.FileIterator.getPOS() |
| Modifier and Type | Method and Description |
|---|---|
protected <K,V> Map<POS,Map<K,V>> |
RAMDictionary.DictionaryData.makePOSMap()
This method is used when constructing the dictionary data object.
|
| Modifier and Type | Method and Description |
|---|---|
IExceptionEntry |
CachingDictionary.getExceptionEntry(String surfaceForm,
POS pos) |
IExceptionEntry |
RAMDictionary.getExceptionEntry(String surfaceForm,
POS pos) |
IExceptionEntry |
IDictionary.getExceptionEntry(String surfaceForm,
POS pos)
Retrieves the exception entry for the specified surface form and part of
speech from the database.
|
IExceptionEntry |
DataSourceDictionary.getExceptionEntry(String surfaceForm,
POS pos) |
Iterator<IExceptionEntry> |
CachingDictionary.getExceptionEntryIterator(POS pos) |
Iterator<IExceptionEntry> |
RAMDictionary.getExceptionEntryIterator(POS pos) |
Iterator<IExceptionEntry> |
IDictionary.getExceptionEntryIterator(POS pos)
Returns an iterator that will iterate over all exception entries of the
specified part of speech.
|
Iterator<IExceptionEntry> |
DataSourceDictionary.getExceptionEntryIterator(POS pos) |
IIndexWord |
CachingDictionary.getIndexWord(String lemma,
POS pos) |
IIndexWord |
RAMDictionary.getIndexWord(String lemma,
POS pos) |
IIndexWord |
IDictionary.getIndexWord(String lemma,
POS pos)
This method is identical to
getIndexWord(IIndexWordID) and
is provided as a convenience. |
IIndexWord |
DataSourceDictionary.getIndexWord(String lemma,
POS pos) |
Iterator<IIndexWord> |
CachingDictionary.getIndexWordIterator(POS pos) |
Iterator<IIndexWord> |
RAMDictionary.getIndexWordIterator(POS pos) |
Iterator<IIndexWord> |
IDictionary.getIndexWordIterator(POS pos)
Returns an iterator that will iterate over all index words of the
specified part of speech.
|
Iterator<IIndexWord> |
DataSourceDictionary.getIndexWordIterator(POS pos) |
Iterator<ISynset> |
CachingDictionary.getSynsetIterator(POS pos) |
Iterator<ISynset> |
RAMDictionary.getSynsetIterator(POS pos) |
Iterator<ISynset> |
IDictionary.getSynsetIterator(POS pos)
Returns an iterator that will iterate over all synsets of the specified
part of speech.
|
Iterator<ISynset> |
DataSourceDictionary.getSynsetIterator(POS pos) |
| Modifier and Type | Method and Description |
|---|---|
protected <K,V> void |
RAMDictionary.DictionaryData.compactPOSMap(Map<POS,Map<K,V>> map)
Compacts a part-of-speech map
|
| Constructor and Description |
|---|
DataFileIterator(POS pos) |
ExceptionFileIterator(POS pos) |
HotSwappableExceptionEntryIterator(POS pos)
Constructs a new hot swappable iterator that iterates over exception
entries for the specified part of speech.
|
HotSwappableIndexWordIterator(POS pos)
Constructs a new hot swappable iterator for index words.
|
HotSwappableSynsetIterator(POS pos)
Constructs a new hot swappable iterator for synsets.
|
IndexFileIterator(POS pos) |
IndexFileIterator(POS pos,
String pattern) |
| Modifier and Type | Method and Description |
|---|---|
POS |
ContentType.getPOS() |
| Modifier and Type | Method and Description |
|---|---|
static File |
DataType.find(IDataType<?> type,
POS pos,
Collection<? extends File> files)
Finds the first file that satisfies the naming constraints of both
the data type and part of speech.
|
static IContentType<ISynset> |
ContentType.getDataContentType(POS pos)
Use this convenience method to retrieve the appropriate
ISynset content type for the specified POS. |
static IContentType<IExceptionEntryProxy> |
ContentType.getExceptionContentType(POS pos)
Use this convenience method to retrieve the appropriate
IExceptionEntryProxy content type for the specified POS. |
static IContentType<IIndexWord> |
ContentType.getIndexContentType(POS pos)
Use this convenience method to retrieve the appropriate
IIndexWord content type for the specified POS. |
<T> IContentType<T> |
IDataProvider.resolveContentType(IDataType<T> dt,
POS pos)
Returns the first content type, if any, that matches the specified data
type and pos object.
|
<T> IContentType<T> |
FileProvider.resolveContentType(IDataType<T> dt,
POS pos) |
| Constructor and Description |
|---|
ContentType(IDataType<T> type,
POS pos,
ILineComparator comparator)
Constructs a new ContentType
|
ContentType(IDataType<T> type,
POS pos,
ILineComparator comparator,
Charset charset)
Constructs a new ContentType
|
| Modifier and Type | Method and Description |
|---|---|
protected IPointer |
IndexLineParser.resolvePointer(String symbol,
POS pos)
Retrieves the pointer objects for the
IndexLineParser.parseLine(String) method. |
protected IPointer |
DataLineParser.resolvePointer(String symbol,
POS pos)
Retrieves the pointer objects for the
DataLineParser.parseLine(String) method. |
| Modifier and Type | Method and Description |
|---|---|
static POS |
POS.getPartOfSpeech(char tag)
Retrieves of the part of speech object given the tag.
|
static POS |
POS.getPartOfSpeech(int num)
Retrieves the part of speech object given the number.
|
POS |
Word.getPOS() |
POS |
SenseKey.getPOS() |
POS |
SenseEntry.getPOS() |
POS |
ExceptionEntryID.getPOS() |
POS |
LexFile.getPOS() |
POS |
IHasPOS.getPOS()
Returns the associated part of speech for this object.
|
POS |
SynsetID.getPOS() |
POS |
Synset.getPOS() |
POS |
IndexWordID.getPOS() |
POS |
ExceptionEntry.getPOS() |
POS |
IndexWord.getPOS() |
POS |
WordID.getPOS() |
static POS |
POS.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static POS[] |
POS.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static Pointer |
Pointer.getPointerType(String symbol,
POS pos)
Returns the pointer type (static final instance) that matches the
specified pointer symbol.
|
| Constructor and Description |
|---|
ExceptionEntry(IExceptionEntryProxy proxy,
POS pos)
Creates a new exception entry for the specified part of speech using the
information in the specified exception proxy object.
|
ExceptionEntry(String surfaceForm,
POS pos,
String... rootForms)
Creates a new exception entry for the specified part of speech using the
specified surface and root forms.
|
ExceptionEntryID(String surfaceForm,
POS pos)
Creates a new exception entry id with the specified information.
|
IndexWord(String lemma,
POS pos,
int tagSenseCnt,
IPointer[] ptrs,
IWordID... words)
Constructs a new index word.
|
IndexWord(String lemma,
POS pos,
int tagSenseCnt,
IWordID... words)
Constructs a new index word.
|
IndexWordID(String lemma,
POS pos)
Constructs an index word id object with the specified lemma and part of
speech.
|
LexFile(int num,
String name,
String desc,
POS pos)
Constructs a new lexical file description object.
|
SenseKey(String lemma,
int lexID,
POS pos,
boolean isAdjSat,
ILexFile lexFile)
Constructs a new sense key.
|
SenseKey(String lemma,
int lexID,
POS pos,
boolean isAdjSat,
ILexFile lexFile,
String originalKey)
Constructs a new sense key.
|
SenseKey(String lemma,
int lexID,
POS pos,
ILexFile lexFile,
String headLemma,
int headLexID,
String originalKey)
Constructs a new sense key.
|
SynsetID(int offset,
POS pos)
Constructs a new synset id with the specified offset and part of speech.
|
WordID(int offset,
POS pos,
int num)
Constructs a word id from the specified arguments.
|
WordID(int offset,
POS pos,
String lemma)
Constructs a word id from the specified arguments.
|
| Modifier and Type | Field and Description |
|---|---|
static Map<POS,List<StemmingRule>> |
SimpleStemmer.ruleMap |
| Modifier and Type | Method and Description |
|---|---|
POS |
StemmingRule.getPOS() |
| Modifier and Type | Method and Description |
|---|---|
Map<POS,List<StemmingRule>> |
SimpleStemmer.getRuleMap()
Returns a set of stemming rules used by this stemmer.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
IStemmer.findStems(String surfaceForm,
POS pos)
Takes the surface form of a word, as it appears in the text, and the
assigned Wordnet part of speech.
|
List<String> |
WordnetStemmer.findStems(String word,
POS pos) |
List<String> |
SimpleStemmer.findStems(String word,
POS pos) |
| Constructor and Description |
|---|
StemmingRule(String suffix,
String ending,
POS pos,
String... ignore)
Creates a new stemming rule with the specified suffix, ending, and
avoid set
|
Copyright © 2018. All rights reserved.