zad
This commit is contained in:
commit
8fdd5dd519
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
run.py
Normal file
11
run.py
Normal file
@ -0,0 +1,11 @@
|
||||
import regex as re
|
||||
import sys
|
||||
for line in sys.stdin:
|
||||
line = re.split(r'\t',line)
|
||||
last_word = re.split(r'\s',line[6])[-1]
|
||||
if(last_word == 'united'):
|
||||
print('states:0.8 a:0.1 :0.1')
|
||||
elif (last_word != 'the'):
|
||||
print('the:0.6 a:0.3 :0.1')
|
||||
else:
|
||||
print('and:0.6 a:0.3 :0.1')
|
7414
test-A/out.tsv
Normal file
7414
test-A/out.tsv
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user