Here is the error:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-34-7dbc54dd5cab> in <module>
25 databunch_5 = (TextList.from_df(train, cols=['question_title','question_body','answer'], processor=transformer_processor_g)
26 .split_by_rand_pct(0.1,seed=42)
---> 27 .label_from_df(cols=targets)
28 .add_test(test)
29 .databunch(bs=32, collate_fn=partial(pad_collate, pad_first=False, pad_idx=0)))
/opt/conda/lib/python3.6/site-packages/fastai/data_block.py in _inner(*args, **kwargs)
478 self.valid = fv(*args, from_item_lists=True, **kwargs)
479 self.__class__ = LabelLists
--> 480 self.process()
481 return self
482 return _inner
/opt/conda/lib/python3.6/site-packages/fastai/data_block.py in process(self)
532 "Process the inner datasets."
533 xp,yp = self.get_processors()
--> 534 for ds,n in zip(self.lists, ['train','valid','test']): ds.process(xp, yp, name=n)
535 #progress_bar clear the outputs so in some case warnings issued during processing disappear.
536 for ds in self.lists:
/opt/conda/lib/python3.6/site-packages/fastai/data_block.py in process(self, xp, yp, name, max_warn_items)
712 p.warns = []
713 self.x,self.y = self.x[~filt],self.y[~filt]
--> 714 self.x.process(xp)
715 return self
716
/opt/conda/lib/python3.6/site-packages/fastai/data_block.py in process(self, processor)
82 if processor is not None: self.processor = processor
83 self.processor = listify(self.processor)
---> 84 for p in self.processor: p.process(self)
85 return self
86
/opt/conda/lib/python3.6/site-packages/fastai/text/data.py in process(self, ds)
308 if self.vocab is None: self.vocab = Vocab.create(ds.items, self.max_vocab, self.min_freq)
309 ds.vocab = self.vocab
--> 310 super().process(ds)
311
312 class OpenFileProcessor(PreProcessor):
/opt/conda/lib/python3.6/site-packages/fastai/data_block.py in process(self, ds)
51 def __init__(self, ds:Collection=None): self.ref_ds = ds
52 def process_one(self, item:Any): return item
---> 53 def process(self, ds:Collection): ds.items = array([self.process_one(item) for item in ds.items])
54
55 PreProcessors = Union[PreProcessor, Collection[PreProcessor]]
/opt/conda/lib/python3.6/site-packages/fastai/data_block.py in <listcomp>(.0)
51 def __init__(self, ds:Collection=None): self.ref_ds = ds
52 def process_one(self, item:Any): return item
---> 53 def process(self, ds:Collection): ds.items = array([self.process_one(item) for item in ds.items])
54
55 PreProcessors = Union[PreProcessor, Collection[PreProcessor]]
/opt/conda/lib/python3.6/site-packages/fastai/text/data.py in process_one(self, item)
304 self.vocab,self.max_vocab,self.min_freq = vocab,max_vocab,min_freq
305
--> 306 def process_one(self,item): return np.array(self.vocab.numericalize(item), dtype=np.int64)
307 def process(self, ds):
308 if self.vocab is None: self.vocab = Vocab.create(ds.items, self.max_vocab, self.min_freq)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'