Fix multiclass

This commit is contained in:
s443930 2022-05-28 21:27:06 +02:00
parent 8ea54c4e58
commit b7dccf6cb3
13 changed files with 1535459 additions and 1457166 deletions

0
dev-0/out Normal file
View File

149134
dev-0/out.tsv

File diff suppressed because it is too large Load Diff

10
main.sh
View File

@ -1,6 +1,6 @@
python3 rockyRoadtoDublin.py
vw vw-train -f vw.model
vw -i vw.model -t vw-dev0 -p predicted-dev-0 --quiet
vw -i vw.model -t vw-test-A -p predicted-test-A --quiet
vw -i vw.model -t vw-test-B -p predicted-test-B --quiet
python3 wockyWoad.py
vw --oaa 7 train/vw-in -f vw.model
vw -i vw.model -t dev0-in -p dev-0/out --quiet
vw -i vw.model -t test-A-in -p test-A/out --quiet
vw -i vw.model -t test-B-in -p test-B/out --quiet
python3 decode.py

148308
test-A/out Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

79119
test-B/out Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

2373788
train/vw-in

File diff suppressed because it is too large Load Diff

BIN
vw.model Normal file

Binary file not shown.

View File

@ -25,7 +25,7 @@ def predictFuture(test):
for i in range(len(text)):
data.append(' |Text ' + text[i] + ' |Year ' + years[i])
with open(test + '/vw-in', 'w', encoding='utf-8') as f:
with open(test + '-in', 'w', encoding='utf-8') as f:
for text in data:
f.write('1' + text + '\n')
@ -39,4 +39,4 @@ if __name__ == '__main__':
predictFuture('dev-0')
predictFuture('test-A')
predictFuture('test-B')
predictFuture('test-B')