First test
This commit is contained in:
parent
c0a565f4d0
commit
8522487dc6
0
dev-0/mostUsedP.txt
Normal file
0
dev-0/mostUsedP.txt
Normal file
5272
dev-0/out.tsv
Normal file
5272
dev-0/out.tsv
Normal file
File diff suppressed because it is too large
Load Diff
1500
mostUsed.txt
Normal file
1500
mostUsed.txt
Normal file
File diff suppressed because it is too large
Load Diff
1525
mostUsedP.txt
Normal file
1525
mostUsedP.txt
Normal file
File diff suppressed because it is too large
Load Diff
1531
mostUsedS.txt
Normal file
1531
mostUsedS.txt
Normal file
File diff suppressed because it is too large
Load Diff
14
solve.py
Normal file
14
solve.py
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
import pandas as pd
|
||||||
|
import re
|
||||||
|
import sys
|
||||||
|
# sort | uniq -c
|
||||||
|
#train = pd.read_csv("./train/in.tsv.xz", delimiter='\t')
|
||||||
|
#import sys
|
||||||
|
#for line in sys.stdin
|
||||||
|
#if re.search(r'UFO', line) print("P")
|
||||||
|
for line in sys.stdin:
|
||||||
|
if re.search(r'(ufo|lol|camera|picture|contact|phenomen|photo|paralysis|haunted|alien|demon|ghost|levitation|paranormal|spirit|telekinesis|flying|fake|sky|dream)', line.lower()):
|
||||||
|
print("P")
|
||||||
|
else:
|
||||||
|
print("S")
|
Loading…
Reference in New Issue
Block a user