diff --git a/polyglot/text.py b/polyglot/text.py index 68411a1..510f74d 100644 --- a/polyglot/text.py +++ b/polyglot/text.py @@ -140,9 +140,9 @@ def entities(self): chunks.append(Chunk(self.words[start: i], start, i, tag=prev_tag, parent=self)) prev_tag = tag - if tag != u'O': - chunks.append(Chunk(self.words[start: i+1], start, i+1, tag=tag, - parent=self)) + if tag != u'O': + chunks.append(Chunk(self.words[start: i+1], start, i+1, tag=tag, + parent=self)) return chunks @cached_property