FAQ model Training
neerajvashistha opened this issue · comments
Whilst I was Training the FAQ model for my own dataset (a csv) like it is shown in here, https://github.com/deepmipt/dp_notebooks/blob/master/DP_autoFAQ.ipynb, I am getting below error.
.../lib/python3.6/site-packages/deeppavlov/core/data/simple_vocab.py in load_line(self, ln)
125 cnt = self._min_freq
126 else:
--> 127 token, cnt = ln.split('\t', 1)
128 return token, cnt
129
ValueError: not enough values to unpack (expected 2, got 1)
Is it the CSV issue? or the code issue?
As far as I know, split()
will return the all the element of splits in list format, now if the split does not find one then only One list is returned, which is why the error.
Similar issue reported deeppavlov/DeepPavlov#848