|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.cogroo.tools.checker.rules.dictionary.TagDictionary
public class TagDictionary
Provides access to the FSA tag dictionary
| Constructor Summary | |
|---|---|
TagDictionary(LexicalDictionary access,
boolean caseSensitive,
TagInterpreter tagInterpreter)
|
|
| Method Summary | |
|---|---|
MorphologicalTag |
convertToTargetConvention(String ori)
|
boolean |
exists(String word,
boolean cs)
|
String[] |
getInflectedPrimitive(String primitive,
TagMask tagMask,
boolean cs)
Given a lexeme, returns its inflected form as determined by the tagMask. |
String[] |
getPrimitive(String lexeme,
MorphologicalTag morphologicalTag,
boolean cs)
Given a lexeme and its morphological tag, returns the possible primitives of the lexeme or an array with an empty string, if none is found. |
String[] |
getPrimitive(String lexeme,
TagMask tagMask,
boolean cs)
Given a lexeme and its inflected form as determined by the tagMask,
returns its primitive. |
TagInterpreter |
getTagInterpreter()
|
MorphologicalTag[] |
getTags(String word)
Returns a list of valid tags for the specified word. |
MorphologicalTag[] |
getTags(String word,
boolean cs)
Returns a list of valid tags for the specified word. |
boolean |
match(String lexeme,
TagMask tagMask,
boolean cs)
Tells if a lexeme inflected as determined by the tagMask, exists in the dictionary. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TagDictionary(LexicalDictionary access,
boolean caseSensitive,
TagInterpreter tagInterpreter)
| Method Detail |
|---|
public boolean exists(String word,
boolean cs)
exists in interface CogrooTagDictionary
public String[] getInflectedPrimitive(String primitive,
TagMask tagMask,
boolean cs)
CogrooTagDictionarylexeme, returns its inflected form as determined by the tagMask.
Returns an array with an empty string if the inflection could not be found.
getInflectedPrimitive in interface CogrooTagDictionarytagMask - the tag mask will determine the inflectioncs - case sensitive?
public String[] getPrimitive(String lexeme,
TagMask tagMask,
boolean cs)
CogrooTagDictionarylexeme and its inflected form as determined by the tagMask,
returns its primitive.
getPrimitive in interface CogrooTagDictionarylexeme - the lexeme of which the primitive will be searchedtagMask - the mask that represents the inflection of the lexemecs - case sensitive?
public String[] getPrimitive(String lexeme,
MorphologicalTag morphologicalTag,
boolean cs)
CogrooTagDictionary
getPrimitive in interface CogrooTagDictionarylexeme - a lexememorphologicalTag - a morphological tagcs - tells whether the match of the lexeme must be case sensitive or not
public boolean match(String lexeme,
TagMask tagMask,
boolean cs)
CogrooTagDictionary
match in interface CogrooTagDictionarylexeme - the lexeme to be searchedtagMask - the inflection of the lexemecs - case sensitive?
public MorphologicalTag[] getTags(String word,
boolean cs)
CogrooTagDictionary
getTags in interface CogrooTagDictionaryword - The word.
public MorphologicalTag[] getTags(String word)
CogrooTagDictionary
getTags in interface CogrooTagDictionaryword - The word.
public MorphologicalTag convertToTargetConvention(String ori)
public TagInterpreter getTagInterpreter()
getTagInterpreter in interface CogrooTagDictionary
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||