public class TagDictionary extends Object implements CogrooTagDictionary
| Constructor and Description |
|---|
TagDictionary(LexicalDictionary access,
boolean caseSensitive,
TagInterpreter tagInterpreter) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public TagDictionary(LexicalDictionary access, boolean caseSensitive, TagInterpreter tagInterpreter)
public boolean exists(String word, boolean cs)
exists in interface CogrooTagDictionarypublic 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)
CogrooTagDictionarygetPrimitive in interface CogrooTagDictionarylexeme - a lexememorphologicalTag - a morphological tagcs - tells whether the match of the lexeme must be case sensitive or notpublic boolean match(String lexeme, TagMask tagMask, boolean cs)
CogrooTagDictionarymatch in interface CogrooTagDictionarylexeme - the lexeme to be searchedtagMask - the inflection of the lexemecs - case sensitive?public MorphologicalTag[] getTags(String word, boolean cs)
CogrooTagDictionarygetTags in interface CogrooTagDictionaryword - The word.public MorphologicalTag[] getTags(String word)
CogrooTagDictionarygetTags in interface CogrooTagDictionaryword - The word.public MorphologicalTag convertToTargetConvention(String ori)
public TagInterpreter getTagInterpreter()
getTagInterpreter in interface CogrooTagDictionaryCopyright © 2012–2017 CoGrOO. All rights reserved.