Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -78,7 +78,6 @@ def word2features(sent, i): | ... | @@ -78,7 +78,6 @@ def word2features(sent, i): |
78 | 'word[:1]': word[:1], | 78 | 'word[:1]': word[:1], |
79 | 'endsConLow()={}'.format(endsConLow(word)): endsConLow(word), | 79 | 'endsConLow()={}'.format(endsConLow(word)): endsConLow(word), |
80 | } | 80 | } |
81 | - ''' | ||
82 | if i > 0: | 81 | if i > 0: |
83 | listElem = sent[i - 1].split('|') | 82 | listElem = sent[i - 1].split('|') |
84 | word1 = listElem[0] | 83 | word1 = listElem[0] |
... | @@ -99,6 +98,7 @@ def word2features(sent, i): | ... | @@ -99,6 +98,7 @@ def word2features(sent, i): |
99 | '+1:lemma': lemma1, | 98 | '+1:lemma': lemma1, |
100 | }) | 99 | }) |
101 | 100 | ||
101 | + ''' | ||
102 | if i > 1: | 102 | if i > 1: |
103 | listElem = sent[i - 2].split('|') | 103 | listElem = sent[i - 2].split('|') |
104 | word2 = listElem[0] | 104 | word2 = listElem[0] | ... | ... |
-
Please register or login to post a comment