+
    ÖÇÜh˜I  ã                   óÆ   € ^ RI t ^ RIt^ RIt^ RIHt ^ RIHtHtHtH	t	H
t
 ^ RIHt ^ RIHt ^ RIHt Rt ! R R	]4      t ! R
 R]4      t ! R R]4      t ! R R]4      tR# )é    N)ÚPIPE)Ú_java_optionsÚconfig_javaÚfind_jar_iterÚfind_jars_within_pathÚjava)ÚParserI©ÚDependencyGraph)ÚTreez2https://nlp.stanford.edu/software/lex-parser.shtmlc                   ó„   a € ] tR t^t o RtRtRtRtRtRt	RR lt
R tRR	 ltRR
 ltRR ltRR ltRR ltRR ltRtV tR# )ÚGenericStanfordParserz Interface to the Stanford Parserz+stanford-parser-(\d+)(\.(\d+))+-models\.jarzstanford-parser\.jarz3edu.stanford.nlp.parser.lexparser.LexicalizedParserFNc                ót  € \        \        V P                  VRR\        VRR7      R R7      p\        \        V P                  VR	R\        VRR7      R R7      p	\
        P                  P                  V4      ^ ,          p
\        V	.\        V
4      ,           4      V n
        W0n        W@n        Wpn        W`n        R# )
ÚSTANFORD_PARSERT)Úenv_varsÚ
searchpathÚurlÚverboseÚis_regexc                 ó@   € \         P                  P                  V 4      # ©N©ÚosÚpathÚdirname©Ú
model_paths   &Ú5/usr/lib/python3/dist-packages/nltk/parse/stanford.pyÚ<lambda>Ú0GenericStanfordParser.__init__.<locals>.<lambda>;   ó   € ¤2§7¡7§?¡?°:Ô#>ó    )Úkeyc                 ó@   € \         P                  P                  V 4      # r   r   r   s   &r   r   r    H   r!   r"   N)r   ÚSTANFORD_CORENLP© )ÚSTANFORD_MODELSr%   )Úmaxr   Ú_JARÚ_stanford_urlÚ_MODEL_JAR_PATTERNr   r   ÚsplitÚtupler   Ú
_classpathr   Ú	_encodingÚcorenlp_optionsÚjava_options)ÚselfÚpath_to_jarÚpath_to_models_jarr   Úencodingr   r1   r0   Ústanford_jarÚ	model_jarÚstanford_dirs   &&&&&&&&   r   Ú__init__ÚGenericStanfordParser.__init__&   s°   € ô ÜØ—	‘	ØØ@ØÜ!ØØôñ ?ô
ˆô ÜØ×'Ñ'Ø"Ø@ØÜ!ØØôñ ?ô
ˆ	ô  —w‘w—}‘} \Ó2°1Õ5ˆÜ  Ô.CÀLÓ.QÕ QÓRˆŒà$ŒØ!ŒØ.ÔØ(Ör"   c           
     óä  € . p. p. pR pVP                  R 4       FÉ  pVR8X  d­   V'       d!   VP                  \        V4      4       . pR pK2  V P                  '       d6   VP                  V P	                  RP                  V4      4      4       . pRpKy  VP                  \        V P	                  RP                  V4      4      .4      4       . pK¶  VP                  V4       R pKË  	  \        V4      # )FÚ Ú
T)Ú
splitlinesÚappendÚiterÚ_DOUBLE_SPACED_OUTPUTÚ
_make_treeÚjoin)r2   Úoutput_ÚresÚ	cur_linesÚ	cur_treesÚblankÚlines   &&     r   Ú_parse_trees_outputÚ)GenericStanfordParser._parse_trees_outputV   sÏ   € ØˆØˆ	Øˆ	ØˆØ×&Ñ& uÖ-ˆDØ�rŒzßØ—J‘Jœt I›Ô/Ø "�IØ!’EØ×/×/Ð/Ø×$Ñ$ T§_¡_°T·Y±Y¸yÓ5IÓ%JÔKØ "�IØ ’Eà—J‘Jœt T§_¡_°T·Y±Y¸yÓ5IÓ%JÐ$KÓLÔMØ "’Ià× Ñ  Ô&Ø’ñ .ô  �C‹yÐr"   c           
     óÆ   € V P                   RV P                  RRRV P                  RRR.
pV P                  V P	                  VRP                  R	 V 4       4      V4      4      # )
a’  
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.

:param sentences: Input sentences to parse
:type sentences: list(list(str))
:rtype: iter(iter(Tree))
ú-modelú
-sentencesÚnewlineú-outputFormatú
-tokenizedz-escaperz-edu.stanford.nlp.process.PTBEscapingProcessorr=   c              3   óD   "  € T F  pR P                  V4      x € K  	  R# 5i)Ú N©rC   )Ú.0Úsentences   & r   Ú	<genexpr>Ú4GenericStanfordParser.parse_sents.<locals>.<genexpr>ˆ   s   é € ÐLÁ)°h˜sŸx™x¨×1Ð1Ã)ùs   ‚ ©Ú_MAIN_CLASSr   Ú_OUTPUT_FORMATrJ   Ú_executerC   ©r2   Ú	sentencesr   Úcmds   &&& r   Úparse_sentsÚ!GenericStanfordParser.parse_sentsm   sp   € ð ×ÑØØ�O‰OØØØØ×ÑØØØ;ð
ˆð ×'Ñ'Ø�M‰MØ�T—Y‘YÑLÁ)ÓLÓLÈgóó
ð 	
r"   c                ó:   € \        V P                  V.V4      4      # )zî
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.

:param sentence: Input sentence to parse
:type sentence: str
:rtype: iter(Tree)
)ÚnextÚraw_parse_sents©r2   rV   r   s   &&&r   Ú	raw_parseÚGenericStanfordParser.raw_parseŒ   s   € ô �D×(Ñ(¨(¨°WÓ=Ó>Ð>r"   c                ó²   € V P                   RV P                  RRRV P                  .pV P                  V P	                  VRP                  V4      V4      4      # )a  
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.

:param sentences: Input sentences to parse
:type sentences: list(str)
:rtype: iter(iter(Tree))
rM   rN   rO   rP   r=   rY   r]   s   &&& r   rd   Ú%GenericStanfordParser.raw_parse_sents˜   s^   € ð ×ÑØØ�O‰OØØØØ×Ñð
ˆð ×'Ñ'Ø�M‰M˜#˜tŸy™y¨Ó3°WÓ=ó
ð 	
r"   c                ó:   € \        V P                  V.V4      4      # )zø
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.

:param sentence: Input sentence to parse
:type sentence: list(tuple(str, str))
:rtype: iter(Tree)
)rc   Útagged_parse_sentsre   s   &&&r   Útagged_parseÚ"GenericStanfordParser.tagged_parse¯   s   € ô �D×+Ñ+¨X¨J¸Ó@ÓAÐAr"   c                óÚ   a€ RoV P                   RV P                  RRRV P                  RRSRR	R
R.pV P                  V P	                  VRP                  V3R lV 4       4      V4      4      # )a,  
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.

:param sentences: Input sentences to parse
:type sentences: list(list(tuple(str, str)))
:rtype: iter(iter(Tree))
Ú/rM   rN   rO   rP   rQ   z-tagSeparatorz-tokenizerFactoryz,edu.stanford.nlp.process.WhitespaceTokenizerz-tokenizerMethodÚnewCoreLabelTokenizerFactoryr=   c              3   óZ   <"  € T F   pR P                  V3R lV 4       4      x € K"  	  R# 5i)rS   c              3   óF   <"  € T F  pSP                  V4      x € K  	  R # 5ir   rT   )rU   ÚtaggedÚtag_separators   & €r   rW   ÚEGenericStanfordParser.tagged_parse_sents.<locals>.<genexpr>.<genexpr>Û   s   øé € ÐOÁh¸F˜]×/Ñ/°×7Ð7Ãhùs   ƒ!NrT   )rU   rV   rt   s   & €r   rW   Ú;GenericStanfordParser.tagged_parse_sents.<locals>.<genexpr>Ú   s*   øé € ð á$-˜ð —H‘HÔOÁhÓO×OÐOÛ$-ùs   ƒ(+rY   )r2   r^   r   r_   rt   s   &&& @r   rk   Ú(GenericStanfordParser.tagged_parse_sents»   s�   ø€ ð ˆà×ÑØØ�O‰OØØØØ×ÑØØØØØ:ØØ*ð
ˆð" ×'Ñ'Ø�M‰MØØ—	‘	ô á$-óó ð óó	
ð 		
r"   c           
     óø  € V P                   pVP                  R V.4       V P                  '       d*   VP                  V P                  P                  4       4       RP	                  \
        4      p\        V P                  VR7       \        P                  ! RRR7      ;_uu_ 4       p\        V\        4      '       d   V'       d   VP                  V4      pVP                  V4       VP                  4        V P                  '       d7   VP!                  ^ 4       \#        VV P$                  V\&        \&        R7      w  rxM=VP)                  VP*                  4       \#        WP$                  \&        \&        R7      w  rxVP-                  RR	4      pVP-                  R
R	4      pVP/                  V4      pRRR4       \0        P2                  ! XP*                  4       \        VRR7       X#   + '       g   i     L?; i)z	-encodingrS   )Úoptionsr   ÚwbF)ÚmodeÚdelete)Ú	classpathÚstdinÚstdoutÚstderr)r}   r   r€   s   Â ó    s     N)r/   Úextendr0   r,   rC   r   r   r1   ÚtempfileÚNamedTemporaryFileÚ
isinstanceÚstrÚencodeÚwriteÚflushÚ
_USE_STDINÚseekr   r.   r   r?   ÚnameÚreplaceÚdecoder   Úunlink)	r2   r_   Úinput_r   r5   Údefault_optionsÚ
input_filer   r€   s	   &&&&     r   r\   ÚGenericStanfordParser._executeâ   sv  € Ø—>‘>ˆØ�
‰
�K Ð*Ô+Ø××ÐØ�J‰J�t×+Ñ+×1Ñ1Ó3Ô4àŸ(™(¤=Ó1ˆô 	˜D×-Ñ-°wÕ?ô ×(Ò(¨d¸5×AÕAÀZä˜&¤#×&Ò&¯8ØŸ™ xÓ0�Ø×Ñ˜VÔ$Ø×ÑÔð ��ˆØ—‘ Ô"Ü!%ØØ"Ÿo™oØ$ÜÜô"‘�˜ð —
‘
˜:Ÿ?™?Ô+Ü!%Ø§?¡?¼4Ìô"‘�ð —^‘^ K°Ó6ˆFØ—^‘^ K°Ó6ˆFØ—]‘] 8Ó,ˆF÷3 Bô6 	�	Š	�*—/‘/Ô"ô 	˜O°UÕ;àˆ÷A B×Aús   Â'G)ÃAG)Ä
B(G)Ç)G9	)r.   r/   r0   r1   r   )NNz4edu/stanford/nlp/models/lexparser/englishPCFG.ser.gzÚutf8Fz-mx4gr<   ©F)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r+   r)   rZ   rŠ   rA   r9   rJ   r`   rf   rd   rl   rk   r\   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r   r   r      sS   ø‡ € Ù*àGÐØ"€DØG€Kà€JØ!Ðô.)ò`ô.
ô>
?ô
ô.
Bô%
÷N,ò ,r"   r   c                   ó@   a a€ ] tR tRt oRtRtV 3R ltR tRtVt	V ;t
# )ÚStanfordParseri  aô
  
>>> parser=StanfordParser(
...     model_path="edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz"
... ) # doctest: +SKIP

>>> list(parser.raw_parse("the quick brown fox jumps over the lazy dog")) # doctest: +NORMALIZE_WHITESPACE +SKIP
[Tree('ROOT', [Tree('NP', [Tree('NP', [Tree('DT', ['the']), Tree('JJ', ['quick']), Tree('JJ', ['brown']),
Tree('NN', ['fox'])]), Tree('NP', [Tree('NP', [Tree('NNS', ['jumps'])]), Tree('PP', [Tree('IN', ['over']),
Tree('NP', [Tree('DT', ['the']), Tree('JJ', ['lazy']), Tree('NN', ['dog'])])])])])])]

>>> sum([list(dep_graphs) for dep_graphs in parser.raw_parse_sents((
...     "the quick brown fox jumps over the lazy dog",
...     "the quick grey wolf jumps over the lazy fox"
... ))], []) # doctest: +NORMALIZE_WHITESPACE +SKIP
[Tree('ROOT', [Tree('NP', [Tree('NP', [Tree('DT', ['the']), Tree('JJ', ['quick']), Tree('JJ', ['brown']),
Tree('NN', ['fox'])]), Tree('NP', [Tree('NP', [Tree('NNS', ['jumps'])]), Tree('PP', [Tree('IN', ['over']),
Tree('NP', [Tree('DT', ['the']), Tree('JJ', ['lazy']), Tree('NN', ['dog'])])])])])]), Tree('ROOT', [Tree('NP',
[Tree('NP', [Tree('DT', ['the']), Tree('JJ', ['quick']), Tree('JJ', ['grey']), Tree('NN', ['wolf'])]), Tree('NP',
[Tree('NP', [Tree('NNS', ['jumps'])]), Tree('PP', [Tree('IN', ['over']), Tree('NP', [Tree('DT', ['the']),
Tree('JJ', ['lazy']), Tree('NN', ['fox'])])])])])])]

>>> sum([list(dep_graphs) for dep_graphs in parser.parse_sents((
...     "I 'm a dog".split(),
...     "This is my friends ' cat ( the tabby )".split(),
... ))], []) # doctest: +NORMALIZE_WHITESPACE +SKIP
[Tree('ROOT', [Tree('S', [Tree('NP', [Tree('PRP', ['I'])]), Tree('VP', [Tree('VBP', ["'m"]),
Tree('NP', [Tree('DT', ['a']), Tree('NN', ['dog'])])])])]), Tree('ROOT', [Tree('S', [Tree('NP',
[Tree('DT', ['This'])]), Tree('VP', [Tree('VBZ', ['is']), Tree('NP', [Tree('NP', [Tree('NP', [Tree('PRP$', ['my']),
Tree('NNS', ['friends']), Tree('POS', ["'"])]), Tree('NN', ['cat'])]), Tree('PRN', [Tree('-LRB-', [Tree('', []),
Tree('NP', [Tree('DT', ['the']), Tree('NN', ['tabby'])]), Tree('-RRB-', [])])])])])])])]

>>> sum([list(dep_graphs) for dep_graphs in parser.tagged_parse_sents((
...     (
...         ("The", "DT"),
...         ("quick", "JJ"),
...         ("brown", "JJ"),
...         ("fox", "NN"),
...         ("jumped", "VBD"),
...         ("over", "IN"),
...         ("the", "DT"),
...         ("lazy", "JJ"),
...         ("dog", "NN"),
...         (".", "."),
...     ),
... ))],[]) # doctest: +NORMALIZE_WHITESPACE +SKIP
[Tree('ROOT', [Tree('S', [Tree('NP', [Tree('DT', ['The']), Tree('JJ', ['quick']), Tree('JJ', ['brown']),
Tree('NN', ['fox'])]), Tree('VP', [Tree('VBD', ['jumped']), Tree('PP', [Tree('IN', ['over']), Tree('NP',
[Tree('DT', ['the']), Tree('JJ', ['lazy']), Tree('NN', ['dog'])])])]), Tree('.', ['.'])])])]
Úpennc                ób   <€ \         P                  ! R \        ^R7       \        SV `  ! V/ VB  R# )zcThe StanfordParser will be deprecated
Please use [91mnltk.parse.corenlp.CoreNLPParser[0m instead.©Ú
stacklevelN©ÚwarningsÚwarnÚDeprecationWarningÚsuperr9   ©r2   ÚargsÚkwargsÚ	__class__s   &*,€r   r9   ÚStanfordParser.__init__F  s/   ø€ Ü�ŠðRäØõ		
ô 	‰Ò˜$Ð) &Ô)r"   c                ó.   € \         P                  ! V4      # r   )r   Ú
fromstring©r2   Úresults   &&r   rB   ÚStanfordParser._make_treeP  s   € Ü�Š˜vÓ&Ð&r"   r&   ©r–   r—   r˜   r™   rš   r[   r9   rB   r›   rœ   Ú__classcell__©r¬   r�   s   @@r   rŸ   rŸ     s!   ù‡ € ñ0ðd €Nõ*÷'ò 'r"   rŸ   c                   ó@   a a€ ] tR tRt oRtRtV 3R ltR tRtVt	V ;t
# )ÚStanfordDependencyParseriT  aã	  
>>> dep_parser=StanfordDependencyParser(
...     model_path="edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz"
... ) # doctest: +SKIP

>>> [parse.tree() for parse in dep_parser.raw_parse("The quick brown fox jumps over the lazy dog.")] # doctest: +NORMALIZE_WHITESPACE +SKIP
[Tree('jumps', [Tree('fox', ['The', 'quick', 'brown']), Tree('dog', ['over', 'the', 'lazy'])])]

>>> [list(parse.triples()) for parse in dep_parser.raw_parse("The quick brown fox jumps over the lazy dog.")] # doctest: +NORMALIZE_WHITESPACE +SKIP
[[((u'jumps', u'VBZ'), u'nsubj', (u'fox', u'NN')), ((u'fox', u'NN'), u'det', (u'The', u'DT')),
((u'fox', u'NN'), u'amod', (u'quick', u'JJ')), ((u'fox', u'NN'), u'amod', (u'brown', u'JJ')),
((u'jumps', u'VBZ'), u'nmod', (u'dog', u'NN')), ((u'dog', u'NN'), u'case', (u'over', u'IN')),
((u'dog', u'NN'), u'det', (u'the', u'DT')), ((u'dog', u'NN'), u'amod', (u'lazy', u'JJ'))]]

>>> sum([[parse.tree() for parse in dep_graphs] for dep_graphs in dep_parser.raw_parse_sents((
...     "The quick brown fox jumps over the lazy dog.",
...     "The quick grey wolf jumps over the lazy fox."
... ))], []) # doctest: +NORMALIZE_WHITESPACE +SKIP
[Tree('jumps', [Tree('fox', ['The', 'quick', 'brown']), Tree('dog', ['over', 'the', 'lazy'])]),
Tree('jumps', [Tree('wolf', ['The', 'quick', 'grey']), Tree('fox', ['over', 'the', 'lazy'])])]

>>> sum([[parse.tree() for parse in dep_graphs] for dep_graphs in dep_parser.parse_sents((
...     "I 'm a dog".split(),
...     "This is my friends ' cat ( the tabby )".split(),
... ))], []) # doctest: +NORMALIZE_WHITESPACE +SKIP
[Tree('dog', ['I', "'m", 'a']), Tree('cat', ['This', 'is', Tree('friends', ['my', "'"]), Tree('tabby', ['the'])])]

>>> sum([[list(parse.triples()) for parse in dep_graphs] for dep_graphs in dep_parser.tagged_parse_sents((
...     (
...         ("The", "DT"),
...         ("quick", "JJ"),
...         ("brown", "JJ"),
...         ("fox", "NN"),
...         ("jumped", "VBD"),
...         ("over", "IN"),
...         ("the", "DT"),
...         ("lazy", "JJ"),
...         ("dog", "NN"),
...         (".", "."),
...     ),
... ))],[]) # doctest: +NORMALIZE_WHITESPACE +SKIP
[[((u'jumped', u'VBD'), u'nsubj', (u'fox', u'NN')), ((u'fox', u'NN'), u'det', (u'The', u'DT')),
((u'fox', u'NN'), u'amod', (u'quick', u'JJ')), ((u'fox', u'NN'), u'amod', (u'brown', u'JJ')),
((u'jumped', u'VBD'), u'nmod', (u'dog', u'NN')), ((u'dog', u'NN'), u'case', (u'over', u'IN')),
((u'dog', u'NN'), u'det', (u'the', u'DT')), ((u'dog', u'NN'), u'amod', (u'lazy', u'JJ'))]]

Ú	conll2007c                ób   <€ \         P                  ! R \        ^R7       \        SV `  ! V/ VB  R# )zwThe StanfordDependencyParser will be deprecated
Please use [91mnltk.parse.corenlp.CoreNLPDependencyParser[0m instead.r¢   Nr¤   r©   s   &*,€r   r9   Ú!StanfordDependencyParser.__init__‡  s/   ø€ Ü�Šð\äØõ		
ô 	‰Ò˜$Ð) &Ô)r"   c                ó   € \        VR R7      # )Úroot©Útop_relation_labelr
   r°   s   &&r   rB   Ú#StanfordDependencyParser._make_tree‘  ó   € Ü˜v¸&ÔAÐAr"   r&   r³   rµ   s   @@r   r·   r·   T  s#   ù‡ € ñ.ð` !€Nõ*÷Bò Br"   r·   c                   ó^   a a€ ] tR tRt oRtRtRtRtRtRt	Rt
V 3R ltRR	 ltR
 tRtVtV ;t# )ÚStanfordNeuralDependencyParseri•  a  
>>> from nltk.parse.stanford import StanfordNeuralDependencyParser # doctest: +SKIP
>>> dep_parser=StanfordNeuralDependencyParser(java_options='-mx4g')# doctest: +SKIP

>>> [parse.tree() for parse in dep_parser.raw_parse("The quick brown fox jumps over the lazy dog.")] # doctest: +NORMALIZE_WHITESPACE +SKIP
[Tree('jumps', [Tree('fox', ['The', 'quick', 'brown']), Tree('dog', ['over', 'the', 'lazy']), '.'])]

>>> [list(parse.triples()) for parse in dep_parser.raw_parse("The quick brown fox jumps over the lazy dog.")] # doctest: +NORMALIZE_WHITESPACE +SKIP
[[((u'jumps', u'VBZ'), u'nsubj', (u'fox', u'NN')), ((u'fox', u'NN'), u'det',
(u'The', u'DT')), ((u'fox', u'NN'), u'amod', (u'quick', u'JJ')), ((u'fox', u'NN'),
u'amod', (u'brown', u'JJ')), ((u'jumps', u'VBZ'), u'nmod', (u'dog', u'NN')),
((u'dog', u'NN'), u'case', (u'over', u'IN')), ((u'dog', u'NN'), u'det',
(u'the', u'DT')), ((u'dog', u'NN'), u'amod', (u'lazy', u'JJ')), ((u'jumps', u'VBZ'),
u'punct', (u'.', u'.'))]]

>>> sum([[parse.tree() for parse in dep_graphs] for dep_graphs in dep_parser.raw_parse_sents((
...     "The quick brown fox jumps over the lazy dog.",
...     "The quick grey wolf jumps over the lazy fox."
... ))], []) # doctest: +NORMALIZE_WHITESPACE +SKIP
[Tree('jumps', [Tree('fox', ['The', 'quick', 'brown']), Tree('dog', ['over',
'the', 'lazy']), '.']), Tree('jumps', [Tree('wolf', ['The', 'quick', 'grey']),
Tree('fox', ['over', 'the', 'lazy']), '.'])]

>>> sum([[parse.tree() for parse in dep_graphs] for dep_graphs in dep_parser.parse_sents((
...     "I 'm a dog".split(),
...     "This is my friends ' cat ( the tabby )".split(),
... ))], []) # doctest: +NORMALIZE_WHITESPACE +SKIP
[Tree('dog', ['I', "'m", 'a']), Tree('cat', ['This', 'is', Tree('friends',
['my', "'"]), Tree('tabby', ['-LRB-', 'the', '-RRB-'])])]
Úconllz)edu.stanford.nlp.pipeline.StanfordCoreNLPz%stanford-corenlp-(\d+)(\.(\d+))+\.jarz,stanford-corenlp-(\d+)(\.(\d+))+-models\.jarTc                ó”   <€ \         P                  ! R \        ^R7       \        SV `  ! V/ VB  V ;P
                  R,          un        R# )z}The StanfordNeuralDependencyParser will be deprecated
Please use [91mnltk.parse.corenlp.CoreNLPDependencyParser[0m instead.r¢   z(-annotators tokenize,ssplit,pos,depparseN)r¥   r¦   r§   r¨   r9   r0   r©   s   &*,€r   r9   Ú'StanfordNeuralDependencyParser.__init__¼  sA   ø€ Ü�Šð\äØõ		
ô 	‰Ò˜$Ð) &Ò)Ø×ÒÐ JÕJ×r"   c                ó   € \        R4      h)z–
Currently unimplemented because the neural dependency parser (and
the StanfordCoreNLP pipeline class) doesn't support passing in pre-
tagged tokens.
zxtagged_parse[_sents] is not supported by StanfordNeuralDependencyParser; use parse[_sents] or raw_parse[_sents] instead.)ÚNotImplementedError)r2   r^   r   s   &&&r   rk   Ú1StanfordNeuralDependencyParser.tagged_parse_sentsÇ  s   € ô "ð:ó
ð 	
r"   c                ó   € \        VR R7      # )ÚROOTr½   r
   r°   s   &&r   rB   Ú)StanfordNeuralDependencyParser._make_treeÓ  rÀ   r"   r&   r•   )r–   r—   r˜   r™   rš   r[   rZ   r)   r+   rŠ   rA   r9   rk   rB   r›   rœ   r´   rµ   s   @@r   rÂ   rÂ   •  sC   ù‡ € ñð> €NØ=€KØ3€DØHÐØ€JØ Ðõ	Kô

÷Bò Br"   rÂ   )r   rƒ   r¥   Ú
subprocessr   Únltk.internalsr   r   r   r   r   Únltk.parse.apir	   Únltk.parse.dependencygraphr   Ú	nltk.treer   r*   r   rŸ   r·   rÂ   r&   r"   r   Ú<module>rÑ      sk   ðó 
Û Û Ý ÷õ õ #Ý 6Ý àD€ôr˜Gô rôj@'Ð*ô @'ôF>BÐ4ô >BôB?BÐ%:ö ?Br"   