updating final phabricator modeling approach
This commit is contained in:
parent
06d9feef3c
commit
065616558e
File diff suppressed because one or more lines are too long
@ -483,7 +483,7 @@
|
|||||||
"source": [
|
"source": [
|
||||||
"def extract_dependency_tree(sentence):\n",
|
"def extract_dependency_tree(sentence):\n",
|
||||||
" doc = nlp(sentence)\n",
|
" doc = nlp(sentence)\n",
|
||||||
" return [(token.text, token.dep_, token.head.text, token.ancestors, token.subtree, token.children) for token in doc]"
|
" return [(token.text, token.lemma_, token.dep_, token.head.text, token.ancestors, token.subtree, token.children) for token in doc]"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
845
text_analysis/case1/031025_phab_comments.ipynb
Normal file
845
text_analysis/case1/031025_phab_comments.ipynb
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user