Compare commits

...

3 Commits

Author SHA1 Message Date
Jakub Eichner a042f18b0c Usuń 'lm0.py' 2023-05-31 07:16:44 +02:00
Jakub Eichner de0b0f373d Usuń 'geval' 2023-05-31 07:16:35 +02:00
s478874 aef8f1b6da Neural network model 1.0 2023-05-31 05:14:54 +00:00
6 changed files with 17954 additions and 10532 deletions

2
.gitignore vendored
View File

@ -6,3 +6,5 @@
*.o
.DS_Store
.token
geval
*.bin

File diff suppressed because one or more lines are too long

BIN
geval

Binary file not shown.

19
gonito.yaml Normal file
View File

@ -0,0 +1,19 @@
description: Neural Network Solution
tags:
- neural-network
- right-right
params:
vocab_size = 2500
bagging_left_ctx = 20
bagging_right_ctx = 20
ngram_left_ctx = 3
ngram_right_ctx = 3
embed_size = 300
hidden_size = 50
batch_size = 80000
lr = 0.0004
unwanted-params:
- model-file
- vocab-file
param-files:
- "*.yaml"

13
lm0.py
View File

@ -1,13 +0,0 @@
#!/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

File diff suppressed because one or more lines are too long