diff --git a/clone.sh b/clone.sh new file mode 100644 index 0000000..9ecc9da --- /dev/null +++ b/clone.sh @@ -0,0 +1,2 @@ +#!/bin/bash +git clone --single-branch git://gonito.net/challenging-america-word-gap-prediction -b master \ No newline at end of file diff --git a/command.sh b/command.sh new file mode 100644 index 0000000..c6f3300 --- /dev/null +++ b/command.sh @@ -0,0 +1,2 @@ +#!/bin/bash +xzcat test-A/in.tsv.xz| python3 ../lm0.py > test-A/out.tsv \ No newline at end of file diff --git a/lm0.py b/lm0.py new file mode 100644 index 0000000..257e19c --- /dev/null +++ b/lm0.py @@ -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') \ No newline at end of file