First test

This commit is contained in:
Th3NiKo 2020-02-28 15:24:47 +01:00
parent c0a565f4d0
commit 8522487dc6
14 changed files with 594295 additions and 294874 deletions

0
dev-0/mostUsedP.txt Normal file
View File

5272
dev-0/out.tsv Normal file

File diff suppressed because it is too large Load Diff

1500
mostUsed.txt Normal file

File diff suppressed because it is too large Load Diff

1525
mostUsedP.txt Normal file

File diff suppressed because it is too large Load Diff

1531
mostUsedS.txt Normal file

File diff suppressed because it is too large Load Diff

104076
onlyP.txt Normal file

File diff suppressed because one or more lines are too long

185503
onlyS.txt Normal file

File diff suppressed because one or more lines are too long

14
solve.py Normal file
View 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")