Skip to content

Commit

Permalink
Merge pull request fastai#183 from hiromis/master
Browse files Browse the repository at this point in the history
Fixing off by one error
  • Loading branch information
jph00 authored Mar 6, 2018
2 parents f7cb3a0 + fe17834 commit b750b9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastai/nlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ class TextDataLoader():
def __init__(self, src, x_fld, y_fld):
self.src,self.x_fld,self.y_fld = src,x_fld,y_fld

def __len__(self): return len(self.src)-1
def __len__(self): return len(self.src)

def __iter__(self):
it = iter(self.src)
Expand Down

0 comments on commit b750b9e

Please sign in to comment.