You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
我是一个新手参照您的dev_path = '../data/ts/test.sample.tsv'下的格式生成了训练集但是会报错属性缺失如下:
File "/Users/hanyang/Downloads/lightNLP-master/examples/test_ts.py", line 20, in
log_dir='/Users/hanyang/Desktop')
File "/Users/hanyang/Downloads/lightNLP-master/lightnlp/tg/ts/module.py", line 31, in train
word_vocab = ts_tool.get_vocab(train_dataset, dev_dataset)
File "/Users/hanyang/Downloads/lightNLP-master/lightnlp/tg/ts/tool.py", line 41, in get_vocab
TEXT.build_vocab(*dataset)
File "/Users/hanyang/Library/Python/3.7/lib/python/site-packages/torchtext/data/field.py", line 298, in build_vocab
for x in data:
File "/Users/hanyang/Library/Python/3.7/lib/python/site-packages/torchtext/data/dataset.py", line 154, in getattr
yield getattr(x, attr)
AttributeError: 'Example' object has no attribute 'summarization'
The text was updated successfully, but these errors were encountered:
我是一个新手参照您的dev_path = '../data/ts/test.sample.tsv'下的格式生成了训练集但是会报错属性缺失如下:
File "/Users/hanyang/Downloads/lightNLP-master/examples/test_ts.py", line 20, in
log_dir='/Users/hanyang/Desktop')
File "/Users/hanyang/Downloads/lightNLP-master/lightnlp/tg/ts/module.py", line 31, in train
word_vocab = ts_tool.get_vocab(train_dataset, dev_dataset)
File "/Users/hanyang/Downloads/lightNLP-master/lightnlp/tg/ts/tool.py", line 41, in get_vocab
TEXT.build_vocab(*dataset)
File "/Users/hanyang/Library/Python/3.7/lib/python/site-packages/torchtext/data/field.py", line 298, in build_vocab
for x in data:
File "/Users/hanyang/Library/Python/3.7/lib/python/site-packages/torchtext/data/dataset.py", line 154, in getattr
yield getattr(x, attr)
AttributeError: 'Example' object has no attribute 'summarization'
The text was updated successfully, but these errors were encountered: