Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
43fb6b94f4 |
2
.gitignore
vendored
2
.gitignore
vendored
@ -6,5 +6,3 @@
|
||||
*.o
|
||||
.DS_Store
|
||||
.token
|
||||
.gin
|
||||
geval
|
21038
dev-0/out.tsv
21038
dev-0/out.tsv
File diff suppressed because it is too large
Load Diff
15
gonito.yaml
Normal file
15
gonito.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
description: LSTM Solution
|
||||
tags:
|
||||
- LSTM
|
||||
params:
|
||||
max_steps = -1
|
||||
vocab_size = 20000
|
||||
embed_size = 150
|
||||
batch_size = 1024*16
|
||||
hidden_size = 512
|
||||
learning_rate = 0.0003
|
||||
unwanted-params:
|
||||
- model-file
|
||||
- vocab-file
|
||||
param-files:
|
||||
- "*.yaml"
|
13
lm0.py
Normal file
13
lm0.py
Normal file
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/python3
|
||||
import sys
|
||||
for i, line in enumerate(sys.stdin):
|
||||
if(line.split('\t')[6].endswith('\n')):
|
||||
print('hence:0.95 :0.05')
|
||||
elif(line.split('\t')[6].endswith('ot')):
|
||||
print('be:0.6 a:0.35 :0.05')
|
||||
elif(line.split('\t')[6].endswith('.')):
|
||||
print('but:0.85 :0.15')
|
||||
elif([l.split(' ') for l in line.split('\t')][5][0].endswith('ing')):
|
||||
print('this:0.88 :0.12')
|
||||
else:
|
||||
print('the:0.5 a:0.3 :0.2')
|
7414
test-A/out.tsv
Normal file
7414
test-A/out.tsv
Normal file
File diff suppressed because it is too large
Load Diff
BIN
trigram_nn_vocab_20000.pickle
Normal file
BIN
trigram_nn_vocab_20000.pickle
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user