zad1
This commit is contained in:
commit
5a0664bc40
10519
dev-0/out.tsv
Normal file
10519
dev-0/out.tsv
Normal file
File diff suppressed because it is too large
Load Diff
11
generate_out.py
Normal file
11
generate_out.py
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
file = sys.argv[1]
|
||||||
|
|
||||||
|
with open(file, encoding='utf-8') as f1, open('out.tsv', 'w', encoding='utf-8') as f2:
|
||||||
|
for line in f1:
|
||||||
|
line = line.split('\t')
|
||||||
|
if line[-1][0].isupper():
|
||||||
|
f2.write('the:0.9 :0.1\n')
|
||||||
|
else:
|
||||||
|
f2.write('the:0.4 a:0.4 :0.2\n')
|
432022
test-A/out.tsv
Normal file
432022
test-A/out.tsv
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user