444501
This commit is contained in:
parent
609ff2f6f1
commit
dc23a5d26a
362
dev-0/out.tsv
362
dev-0/out.tsv
File diff suppressed because it is too large
Load Diff
352
dev-1/out.tsv
352
dev-1/out.tsv
File diff suppressed because it is too large
Load Diff
5
run.py
5
run.py
@ -1,9 +1,10 @@
|
||||
m = ['żona', 'żony', 'żonie', 'żoną', 'zona', 'zony', 'zonie', 'mecz', 'komputer', 'serwer',
|
||||
'ziomek', 'ziom', 'ziomków', 'ziomkow', 'kumpel', 'kolega', 'kolegą', 'kolegi'
|
||||
'ziomek', 'ziom', 'ziomków', 'ziomkow', 'kumpel', 'kolega', 'kolegą', 'kolegi',
|
||||
'lagi', 'gram', 'gra', 'gry', 'diablo', 'wowa', 'tibia', 'tibie', 'samochód', 'samochod', 'auto', 'felga', 'felgi',
|
||||
'bmw', 'audi', 'passat', 'informatyka', 'informatykę', 'polibuda', 'polibudzie', 'politechnika', 'politechnice',
|
||||
'piwo', 'laska', 'laseczka', 'laseczki', 'dziewczynie', 'siema', 'elo', 'yo', 'spadam', 'windows',
|
||||
'linux', 'sterowniki', 'silka', 'siłka', 'wyciskam', 'klate', 'paliwo', 'paliwa', 'lv', 'eq',
|
||||
'robota', 'cycki', 'sztanga', 'sztange', 'rychu', 'peja', 'czolg', 'czołg', 'korwin'
|
||||
]
|
||||
|
||||
|
||||
@ -16,6 +17,8 @@ def calculate(p_in, p_out):
|
||||
results = []
|
||||
with open(p_in, encoding='utf-8') as file:
|
||||
for line in file.readlines():
|
||||
line.replace('.', ' ')
|
||||
line.replace(',', ' ')
|
||||
words = line.split()
|
||||
m_score = len([w for w in words if w in m])
|
||||
f_score = len([w for w in words if w in f])
|
||||
|
328
test-A/out.tsv
328
test-A/out.tsv
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user