Compare commits
17 Commits
master
...
bag-of-wor
Author | SHA1 | Date | |
---|---|---|---|
|
fec0103d93 | ||
|
0ea85905c3 | ||
|
192bdfb0db | ||
|
de6961293e | ||
|
32defa6e9a | ||
|
31b60fa7ac | ||
|
38933d296a | ||
|
4b55cbcd31 | ||
|
8af3db9b85 | ||
|
3885fc9bf5 | ||
|
f21e4151e2 | ||
|
fb067cbb0c | ||
|
8932a60c7c | ||
|
65cc35734d | ||
|
52dc7c6b2a | ||
|
162dadf0d3 | ||
|
dc0c405db1 |
21038
dev-0/out.tsv
21038
dev-0/out.tsv
File diff suppressed because one or more lines are too long
11
run.py
11
run.py
@ -1,11 +0,0 @@
|
|||||||
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')
|
|
14828
test-A/out.tsv
14828
test-A/out.tsv
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user