|
|||||||||
| 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.PennTreebankLanguagePack
public class PennTreebankLanguagePack
Specifies the treebank/language specific components needed for parsing the English Penn Treebank.
| Field Summary |
|---|
| Fields inherited from class edu.stanford.nlp.trees.AbstractTreebankLanguagePack |
|---|
DEFAULT_ENCODING, DEFAULT_GF_CHAR, gfCharacter |
| Constructor Summary | |
|---|---|
PennTreebankLanguagePack()
Gives a handle to the TreebankLanguagePack |
|
| Method Summary | |
|---|---|
java.lang.String[] |
evalBIgnoredPunctuationTags()
Returns a String array of punctuation tags that EVALB-style evaluation should ignore for this treebank/language. |
TokenizerFactory<Word> |
getTokenizerFactory()
Returns a factory for PTBTokenizer. |
GrammaticalStructureFactory |
grammaticalStructureFactory()
Return a GrammaticalStructure suitable for this language/treebank. |
GrammaticalStructureFactory |
grammaticalStructureFactory(Filter<java.lang.String> puncFilter)
Return a GrammaticalStructure suitable for this language/treebank. |
GrammaticalStructureFactory |
grammaticalStructureFactory(Filter<java.lang.String> puncFilter,
HeadFinder hf)
Return a GrammaticalStructureFactory suitable for this language/treebank. |
HeadFinder |
headFinder()
The HeadFinder to use for your treebank. |
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(java.lang.String[] args)
Prints a few aspects of the TreebankLanguagePack, just for debugging. |
java.lang.String[] |
punctuationTags()
Returns a String array of punctuation tags for this treebank/language. |
java.lang.String[] |
punctuationWords()
Returns a String array of punctuation words for this treebank/language. |
java.lang.String[] |
sentenceFinalPunctuationTags()
Returns a String array of sentence final punctuation tags for this treebank/language. |
java.lang.String[] |
sentenceFinalPunctuationWords()
Returns a String array of sentence final punctuation words for this treebank/language. |
java.lang.String[] |
startSymbols()
Returns a String array of treebank start symbols. |
java.lang.String |
treebankFileExtension()
Returns the extension of treebank files for this treebank. |
HeadFinder |
typedDependencyHeadFinder()
The HeadFinder to use when making typed dependencies. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PennTreebankLanguagePack()
| Method Detail |
|---|
public java.lang.String[] punctuationTags()
punctuationTags in interface TreebankLanguagePackpunctuationTags in class AbstractTreebankLanguagePackpublic java.lang.String[] punctuationWords()
punctuationWords in interface TreebankLanguagePackpunctuationWords in class AbstractTreebankLanguagePackpublic java.lang.String[] sentenceFinalPunctuationTags()
sentenceFinalPunctuationTags in interface TreebankLanguagePacksentenceFinalPunctuationTags in class AbstractTreebankLanguagePackpublic java.lang.String[] sentenceFinalPunctuationWords()
public java.lang.String[] evalBIgnoredPunctuationTags()
evalBIgnoredPunctuationTags in interface TreebankLanguagePackevalBIgnoredPunctuationTags in class AbstractTreebankLanguagePackpublic char[] labelAnnotationIntroducingCharacters()
labelAnnotationIntroducingCharacters in interface TreebankLanguagePacklabelAnnotationIntroducingCharacters in class AbstractTreebankLanguagePackpublic java.lang.String[] startSymbols()
startSymbols in interface TreebankLanguagePackstartSymbols in class AbstractTreebankLanguagePackpublic TokenizerFactory<Word> getTokenizerFactory()
PTBTokenizer.
getTokenizerFactory in interface TreebankLanguagePackgetTokenizerFactory in class AbstractTreebankLanguagePackpublic java.lang.String treebankFileExtension()
public GrammaticalStructureFactory grammaticalStructureFactory()
grammaticalStructureFactory in interface TreebankLanguagePackgrammaticalStructureFactory in class AbstractTreebankLanguagePackpublic GrammaticalStructureFactory grammaticalStructureFactory(Filter<java.lang.String> puncFilter)
Note: This is loaded by reflection so basic treebank use does not require all the Stanford Dependencies code.
grammaticalStructureFactory in interface TreebankLanguagePackgrammaticalStructureFactory in class AbstractTreebankLanguagePackpuncFilter - A filter which should reject punctuation words (as Strings)
public GrammaticalStructureFactory grammaticalStructureFactory(Filter<java.lang.String> puncFilter,
HeadFinder hf)
AbstractTreebankLanguagePack
grammaticalStructureFactory in interface TreebankLanguagePackgrammaticalStructureFactory in class AbstractTreebankLanguagePackpuncFilter - A filter which should reject punctuation words (as Strings)hf - A HeadFinder which finds heads for typed dependencies
public HeadFinder headFinder()
public HeadFinder typedDependencyHeadFinder()
public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||