add scripts

This commit is contained in:
Szymon Parafiński 2023-03-29 11:51:53 +02:00
parent 51c5861c75
commit 419a452bbe
3 changed files with 13 additions and 0 deletions

2
clone.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/bash
git clone --single-branch git://gonito.net/challenging-america-word-gap-prediction -b master

2
command.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/bash
xzcat test-A/in.tsv.xz| python3 ../lm0.py > test-A/out.tsv

9
lm0.py Normal file
View File

@ -0,0 +1,9 @@
#!/usr/bin/python3
import sys
for line in sys.stdin:
text = line.split("\t")[6].split(" ")
if "united" in text:
print('states:0.99 :0.01')
else:
print('the:0.3 to:0.2 of:0.1 and:0.1 a:0.2 :0.1')