We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6aed264 + a10622d commit 8591e70Copy full SHA for 8591e70
demo/semantic_role_labeling/data/extract_dict_feature.py
@@ -43,13 +43,13 @@ def extract_dict_features(pair_file, feature_file):
43
mark[verb_index] = 1
44
ctx_0 = sentence_list[verb_index]
45
46
- if verb_index < len(labels_list) - 2:
+ if verb_index < len(labels_list) - 1:
47
mark[verb_index + 1] = 1
48
ctx_p1 = sentence_list[verb_index + 1]
49
else:
50
ctx_p1 = 'eos'
51
52
- if verb_index < len(labels_list) - 3:
+ if verb_index < len(labels_list) - 2:
53
mark[verb_index + 2] = 1
54
ctx_p2 = sentence_list[verb_index + 2]
55
0 commit comments