Skip to content

Commit dcfd96a

Browse files
author
anuragkumar95
committed
Update dependencies.py
1 parent 769735a commit dcfd96a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyjsonnlp/dependencies.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def build_compound_concepts(self, d: UniversalDependencyParse, head_token: int,
161161
tok, rel = relations.pop()
162162
if relation == 'compound':
163163
item[head_token]['comp_subj'].append(tok)
164-
if relation in ['amod','DT']:
164+
else:
165165
item[head_token]['subj_phrase'].append(tok)
166166
build_compound_concepts(d,head_token,tok,item)
167167

0 commit comments

Comments
 (0)