Fix multiclass
This commit is contained in:
parent
8ea54c4e58
commit
b7dccf6cb3
149134
dev-0/out.tsv
149134
dev-0/out.tsv
File diff suppressed because it is too large
Load Diff
10
main.sh
10
main.sh
@ -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
148308
test-A/out
Normal file
File diff suppressed because it is too large
Load Diff
151608
test-A/out.tsv
151608
test-A/out.tsv
File diff suppressed because it is too large
Load Diff
79119
test-B/out
Normal file
79119
test-B/out
Normal file
File diff suppressed because it is too large
Load Diff
90654
test-B/out.tsv
90654
test-B/out.tsv
File diff suppressed because it is too large
Load Diff
2373788
train/vw-in
2373788
train/vw-in
File diff suppressed because it is too large
Load Diff
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user