Skip to content
Permalink
Browse files

Fix empty sentence

  • Loading branch information...
vitordouzi committed Feb 20, 2019
1 parent b1fe5fd commit 39962bf8afd54a2c7d1dfa0b2bf23e0bc7486622
Showing with 1 addition and 0 deletions.
  1. BIN microsoft.gpg
  2. +1 −0 yake/datarepresentation.py
BIN +641 Bytes microsoft.gpg
Binary file not shown.
@@ -50,6 +50,7 @@ def _build(self, text, windowsSize, n):
self.sentences_str = [ [w for w in split_contractions(web_tokenizer(s)) if not (w.startswith("'") and len(w) > 1) and len(w) > 0] for s in list(split_multi(text)) if len(s.strip()) > 0]
self.number_of_sentences = len(self.sentences_str)
pos_text = 0
block_of_word_obj = []
for (sentence_id, sentence) in enumerate(self.sentences_str):
sentence_obj_aux = []
block_of_word_obj = []

0 comments on commit 39962bf

Please sign in to comment.
You can’t perform that action at this time.