Showing
1 changed file
with
3 additions
and
3 deletions
... | @@ -60,7 +60,7 @@ def word2features(sent, i): | ... | @@ -60,7 +60,7 @@ def word2features(sent, i): |
60 | features = { | 60 | features = { |
61 | #'word': word, | 61 | #'word': word, |
62 | 'lemma': lemma, | 62 | 'lemma': lemma, |
63 | - #'postag': postag, | 63 | + 'postag': postag, |
64 | } | 64 | } |
65 | if i > 0: | 65 | if i > 0: |
66 | listElem = sent[i - 1].split('|') | 66 | listElem = sent[i - 1].split('|') |
... | @@ -70,7 +70,7 @@ def word2features(sent, i): | ... | @@ -70,7 +70,7 @@ def word2features(sent, i): |
70 | features.update({ | 70 | features.update({ |
71 | #'-1:word': word1, | 71 | #'-1:word': word1, |
72 | '-1:lemma': lemma1, | 72 | '-1:lemma': lemma1, |
73 | - #'-1:postag': postag1, | 73 | + '-1:postag': postag1, |
74 | }) | 74 | }) |
75 | 75 | ||
76 | if i < len(sent) - 1: | 76 | if i < len(sent) - 1: |
... | @@ -81,7 +81,7 @@ def word2features(sent, i): | ... | @@ -81,7 +81,7 @@ def word2features(sent, i): |
81 | features.update({ | 81 | features.update({ |
82 | #'+1:word': word1, | 82 | #'+1:word': word1, |
83 | '+1:lemma': lemma1, | 83 | '+1:lemma': lemma1, |
84 | - #'+1:postag': postag1, | 84 | + '+1:postag': postag1, |
85 | }) | 85 | }) |
86 | return features | 86 | return features |
87 | 87 | ... | ... |
-
Please register or login to post a comment