Commits

Elias Ponvert committed d343158

not really clear the difference, but a bug in parsing seems to be resolved

  • Participants
  • Parent commits c9f8126

Comments (0)

Files changed (1)

 def sentences_n(fname, n=-1):
   for s in open(fname):
     s = s.split()
-    if n < 0 or len(notpunc(s, keep_punc)) <= n:
+    if n < 0 or len(notpunc(s)) <= n:
       yield s
 
 def notpunc(lst):