public interface Vocabulary
Inerface of Phrase Dictionary
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Modifier and Type | Method and Description |
|---|---|
Word |
findPhrase(Word start)
Finds out the phrase beging with the given word.
|
boolean |
getAdjectivePhraseOption()
Gets the option whether adjective phrase is allowed.
|
boolean |
getCoordinateOption()
Gets the option whether a phrase can contain a conjunction.
|
boolean |
getLemmaOption()
Gets the option of using the base form of the word when matching a phrase.
|
boolean |
getNPPOption()
Gets the option whether NPP phrase is allowed.
|
String |
getPhrase(int index)
Gets the index-th phrase in the vocabulary.
|
int |
getPhraseNum()
Gets the number of phrases in the vocabulary.
|
boolean |
isPhrase(String term)
Tests if the term is a phrase
|
boolean |
isPhrase(Word start,
Word end)
Tests if the term specified by the starting word and the ending word is a prhase.
|
boolean |
isStartingWord(Word cur)
Tests if the specified word could be the starting a word of a phrase.
|
int |
maxPhraseLength()
Gets the maximum number of words a phrase can contain.
|
int |
minPhraseLength()
Gets the minimum number of words a phrase can contain.
|
void |
setAdjectivePhraseOption(boolean enabled)
Sets the option whether adjective phrase is allowed.
|
void |
setCoordinateOption(boolean enabled)
Sets the option whether a phrase can contain a conjunction.
|
void |
setLemmaOption(boolean enabled)
Sets the option of using the base form of the word when matching a phrase.
|
void |
setNPPOption(boolean enabled)
Sets the option whether NPP phrase is allowed.
|
boolean isPhrase(String term)
term - the term for testingboolean isPhrase(Word start, Word end)
start - the starting word of the phraseend - the ending word of the phraseboolean isStartingWord(Word cur)
cur - the current word for testingWord findPhrase(Word start)
start - the starting wordint getPhraseNum()
String getPhrase(int index)
index - the position of the phrase in the vocabularyint maxPhraseLength()
int minPhraseLength()
void setAdjectivePhraseOption(boolean enabled)
enabled - whether adjective phrase is allowed.boolean getAdjectivePhraseOption()
void setNPPOption(boolean enabled)
enabled - the option whether NPP phrase is allowed.boolean getNPPOption()
void setCoordinateOption(boolean enabled)
enabled - the option whether a phrase can contain a conjunctionboolean getCoordinateOption()
void setLemmaOption(boolean enabled)
enabled - the option of using the base form of the word when matching a phrase.boolean getLemmaOption()
Copyright © 2018 JULIE Lab, Germany. All rights reserved.