Remove vw files
This commit is contained in:
parent
483fb9837c
commit
4ac818e536
149134
dev0_predicted
149134
dev0_predicted
File diff suppressed because it is too large
Load Diff
149134
ireland_news_dev0_targets
149134
ireland_news_dev0_targets
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -15,7 +15,7 @@ def generateChooChoo(data, target, categories):
|
||||
|
||||
def predictFuture(test):
|
||||
data = [x[2].replace('\n', '').replace(':', '') for x in io.read(test + '/in.tsv')]
|
||||
with open('vw_ireland_news_' + test, 'w', encoding='utf-8') as f:
|
||||
with open('vw-' + test, 'w', encoding='utf-8') as f:
|
||||
for text in data:
|
||||
f.write('1 |text ' + text + '\n')
|
||||
|
||||
@ -24,11 +24,11 @@ if __name__ == '__main__':
|
||||
ireland_news_train, categories = generateChooChoo('train/in.tsv.xz', 'train/expected.tsv.xz', categories={})
|
||||
ireland_news_dev, _ = generateChooChoo('dev-0/in.tsv', 'dev-0/expected.tsv', categories)
|
||||
|
||||
with open('vw_ireland_news_train', 'w', encoding='utf-8') as f:
|
||||
with open('vw-train', 'w', encoding='utf-8') as f:
|
||||
for target, text in zip(ireland_news_train['target'], ireland_news_train['data']):
|
||||
f.write(str(categories[target] + 1) + ' |text ' + text + '\n')
|
||||
|
||||
with open('vw_ireland_news_dev0', 'w', encoding='utf-8') as f, open('ireland_news_dev0_targets', 'w', encoding='utf-8') as f_targets:
|
||||
with open('vw-dev0', 'w', encoding='utf-8') as f, open('vw-dev0-targets', 'w', encoding='utf-8') as f_targets:
|
||||
for target, text in zip(ireland_news_dev['target'], ireland_news_dev['data']):
|
||||
f.write('1 |text ' + text + '\n')
|
||||
f_targets.write(str(categories[target] + 1) + '\n')
|
||||
|
149134
vw_ireland_news_dev0
149134
vw_ireland_news_dev0
File diff suppressed because it is too large
Load Diff
148308
vw_ireland_news_test-A
148308
vw_ireland_news_test-A
File diff suppressed because it is too large
Load Diff
79119
vw_ireland_news_test-B
79119
vw_ireland_news_test-B
File diff suppressed because it is too large
Load Diff
1186898
vw_ireland_news_train
1186898
vw_ireland_news_train
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user