class GenericStanfordParser(ParserI): (source)
Known subclasses: nltk.parse.stanford.StanfordDependencyParser
, nltk.parse.stanford.StanfordNeuralDependencyParser
, nltk.parse.stanford.StanfordParser
Constructor: GenericStanfordParser(path_to_jar, path_to_models_jar, model_path, encoding, ...)
Interface to the Stanford Parser
Method | __init__ |
Undocumented |
Method | parse |
Use StanfordParser to parse multiple sentences. Takes multiple sentences as a list where each sentence is a list of words. Each sentence will be automatically tagged with this StanfordParser instance's tagger... |
Method | raw |
Use StanfordParser to parse a sentence. Takes a sentence as a string; before parsing, it will be automatically tokenized and tagged by the Stanford Parser. |
Method | raw |
Use StanfordParser to parse multiple sentences. Takes multiple sentences as a list of strings. Each sentence will be automatically tokenized and tagged by the Stanford Parser. |
Method | tagged |
Use StanfordParser to parse a sentence. Takes a sentence as a list of (word, tag) tuples; the sentence must have already been tokenized and tagged. |
Method | tagged |
Use StanfordParser to parse multiple sentences. Takes multiple sentences where each sentence is a list of (word, tag) tuples. The sentences must have already been tokenized and tagged. |
Instance Variable | corenlp |
Undocumented |
Instance Variable | java |
Undocumented |
Instance Variable | model |
Undocumented |
Method | _execute |
Undocumented |
Method | _parse |
Undocumented |
Constant | _DOUBLE |
Undocumented |
Constant | _JAR |
Undocumented |
Constant | _MAIN |
Undocumented |
Constant | _MODEL |
Undocumented |
Constant | _USE |
Undocumented |
Instance Variable | _classpath |
Undocumented |
Instance Variable | _encoding |
Undocumented |
Inherited from ParserI
:
Method | grammar |
No summary |
Method | parse |
When possible this list is sorted from most likely to least likely. |
Method | parse |
No summary |
Method | parse |
No summary |
nltk.parse.api.ParserI.parse_sents
Use StanfordParser to parse multiple sentences. Takes multiple sentences as a list where each sentence is a list of words. Each sentence will be automatically tagged with this StanfordParser instance's tagger. If whitespaces exists inside a token, then the token will be treated as separate tokens.
Parameters | |
sentences:list(list(str)) | Input sentences to parse |
verbose | Undocumented |
Returns | |
iter(iter(Tree)) | Undocumented |
Use StanfordParser to parse a sentence. Takes a sentence as a string; before parsing, it will be automatically tokenized and tagged by the Stanford Parser.
Parameters | |
sentence:str | Input sentence to parse |
verbose | Undocumented |
Returns | |
iter(Tree) | Undocumented |
Use StanfordParser to parse multiple sentences. Takes multiple sentences as a list of strings. Each sentence will be automatically tokenized and tagged by the Stanford Parser.
Parameters | |
sentences:list(str) | Input sentences to parse |
verbose | Undocumented |
Returns | |
iter(iter(Tree)) | Undocumented |
Use StanfordParser to parse a sentence. Takes a sentence as a list of (word, tag) tuples; the sentence must have already been tokenized and tagged.
Parameters | |
sentence:list(tuple(str, str)) | Input sentence to parse |
verbose | Undocumented |
Returns | |
iter(Tree) | Undocumented |
nltk.parse.stanford.StanfordNeuralDependencyParser
Use StanfordParser to parse multiple sentences. Takes multiple sentences where each sentence is a list of (word, tag) tuples. The sentences must have already been tokenized and tagged.
Parameters | |
sentences:list(list(tuple(str, str))) | Input sentences to parse |
verbose | Undocumented |
Returns | |
iter(iter(Tree)) | Undocumented |
nltk.parse.stanford.StanfordNeuralDependencyParser
Undocumented
Value |
|
nltk.parse.stanford.StanfordNeuralDependencyParser
Undocumented
Value |
|
nltk.parse.stanford.StanfordNeuralDependencyParser
Undocumented
Value |
|