1
0

updating final phabricator modeling approach

This commit is contained in:
Matthew Gaughan 2025-03-10 21:11:51 -07:00
parent 06d9feef3c
commit 065616558e
3 changed files with 1691 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -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]"
] ]
}, },
{ {

File diff suppressed because one or more lines are too long