|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.nlp.trees.AbstractTreebankLanguagePack
edu.stanford.nlp.trees.international.arabic.ArabicTreebankLanguagePack
public class ArabicTreebankLanguagePack
Specifies the treebank/language specific components needed for parsing the English Penn Treebank.
The encoding for Arabic is the default UTF-8 specified in AbstractTreebankLanguagePack.
| Field Summary |
|---|
| Fields inherited from class edu.stanford.nlp.trees.AbstractTreebankLanguagePack |
|---|
DEFAULT_ENCODING |
| Constructor Summary | |
|---|---|
ArabicTreebankLanguagePack()
Gives a handle to the TreebankLanguagePack |
|
ArabicTreebankLanguagePack(boolean detPlusNounIsBasicCategory)
If invoked with argument true, the category DET+NOUN is considered a basic category
for purposes of #basicCategory(). |
|
| Method Summary | |
|---|---|
String |
basicCategory(String category)
Returns the basic syntactic category of a String. |
String[] |
evalBIgnoredPunctuationTags()
Returns a String array of punctuation tags that EVALB-style evaluation should ignore for this treebank/language. |
TokenizerFactory |
getTokenizerFactory()
Return a tokenizer which might be suitable for tokenizing text that will be used with this Treebank/Language pair. |
char[] |
labelAnnotationIntroducingCharacters()
Return an array of characters at which a String should be truncated to give the basic syntactic category of a label. |
static void |
main(String[] args)
|
String[] |
punctuationTags()
Returns a String array of punctuation tags for this treebank/language. |
String[] |
punctuationWords()
Returns a String array of punctuation words for this treebank/language. |
String[] |
sentenceFinalPunctuationTags()
Returns a String array of sentence final punctuation tags for this treebank/language. |
String[] |
sentenceFinalPunctuationWords()
Returns a String array of sentence final punctuation words for this treebank/language. |
String[] |
startSymbols()
Returns a String array of treebank start symbols. |
String |
treebankFileExtension()
Returns the extension of treebank files for this treebank. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArabicTreebankLanguagePack()
public ArabicTreebankLanguagePack(boolean detPlusNounIsBasicCategory)
true, the category DET+NOUN is considered a basic category
for purposes of #basicCategory().
detPlusNounIsBasicCategory - | Method Detail |
|---|
public String[] punctuationTags()
punctuationTags in interface TreebankLanguagePackpunctuationTags in class AbstractTreebankLanguagePackpublic String[] punctuationWords()
punctuationWords in interface TreebankLanguagePackpunctuationWords in class AbstractTreebankLanguagePackpublic String[] sentenceFinalPunctuationTags()
sentenceFinalPunctuationTags in interface TreebankLanguagePacksentenceFinalPunctuationTags in class AbstractTreebankLanguagePackpublic String[] sentenceFinalPunctuationWords()
sentenceFinalPunctuationWords in interface TreebankLanguagePackpublic String[] evalBIgnoredPunctuationTags()
evalBIgnoredPunctuationTags in interface TreebankLanguagePackevalBIgnoredPunctuationTags in class AbstractTreebankLanguagePackpublic char[] labelAnnotationIntroducingCharacters()
labelAnnotationIntroducingCharacters in interface TreebankLanguagePacklabelAnnotationIntroducingCharacters in class AbstractTreebankLanguagePackpublic String[] startSymbols()
startSymbols in interface TreebankLanguagePackstartSymbols in class AbstractTreebankLanguagePackpublic TokenizerFactory getTokenizerFactory()
PTBTokenizer.
getTokenizerFactory in interface TreebankLanguagePackgetTokenizerFactory in class AbstractTreebankLanguagePackpublic String treebankFileExtension()
treebankFileExtension in interface TreebankLanguagePackpublic static void main(String[] args)
public String basicCategory(String category)
AbstractTreebankLanguagePacklabelAnnotationIntroducingCharacters().
However, there is also special case stuff to deal with
labelAnnotationIntroducingCharacters in category labels:
(i) if the first char is in this set, it's never truncated
(e.g., '-' or '=' as a token), and (ii) if it starts with
one of this set, a second instance of the same item from this set is
also excluded (to deal with '-LLB-', '-RCB-', etc.).
basicCategory in interface TreebankLanguagePackbasicCategory in class AbstractTreebankLanguagePackcategory - The whole String name of the label
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||