fixes to not infinity and not the same lines
This commit is contained in:
parent
ebe71330aa
commit
6e70850572
1310
dev-0/out.tsv
1310
dev-0/out.tsv
File diff suppressed because it is too large
Load Diff
16
run.py
16
run.py
@ -1,4 +1,20 @@
|
||||
#!/usr/bin/python3
|
||||
import sys
|
||||
for line in sys.stdin:
|
||||
spitted_line = line.split('\t')
|
||||
left_context = spitted_line[6]
|
||||
right_context = spitted_line[7]
|
||||
left_context_words = left_context.split(' ')
|
||||
right_context_words = right_context.split(' ')
|
||||
# print(left_context_words)
|
||||
# print()
|
||||
# print(right_context_words)
|
||||
|
||||
if left_context_words[-1] == 'At' or left_context_words[-1] == 'at':
|
||||
print('first:0.6 which:0.3 :01')
|
||||
elif left_context_words[-1] == 'the':
|
||||
print('it:0.5 a:0.4 :01')
|
||||
elif left_context_words[-1] == 'a':
|
||||
print('the:0.7 it:0.2 :01')
|
||||
else:
|
||||
print('the:0.6 a:0.3 :01')
|
824
test-A/out.tsv
824
test-A/out.tsv
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user