First try

This commit is contained in:
MatOgr 2023-03-29 11:14:30 +02:00
parent 64015c4f6d
commit 0da879db9e
3 changed files with 17952 additions and 1 deletions

10519
dev-0/out.tsv Normal file

File diff suppressed because it is too large Load Diff

20
run.py
View File

@ -1,4 +1,22 @@
#!/usr/bin/python3 #!/usr/bin/python3
import sys import sys
for line in sys.stdin: for line in sys.stdin:
print('the:0.2 a:0.1') _, _, _, _, _, _, left_context, right_context = line.split("\t")
previous_word = left_context.split()[-1]
next_word = right_context.split()[0]
if previous_word == "United" and next_word == "of":
print("States:0.9 :0.1")
elif previous_word == "used":
print("to:0.4 it:0.3 as:0.2 :0.1")
elif previous_word.lower() == "in":
print("the:0.7 a:0.1 an:0.1 :0.1")
elif previous_word.lower() == "i":
print("am:0.3 was:0.3 have:0.3 :0.1")
elif previous_word.lower() in ["he", "she", "it"]:
print("is:0.3 was:0.3 has:0.3 :0.1")
else:
print("the:0.5 a:0.2 an:0.2 :0.1")

7414
test-A/out.tsv Normal file

File diff suppressed because it is too large Load Diff