-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
testi.py
36 lines (21 loc) · 1.05 KB
/
testi.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
from murre import normalize_sentence, normalize_sentences, dialectalize_sentences, dialectalize_sentence, supported_dialects
from murre import generator
print(normalize_sentence("mä syön paljo karkkii".split(" ")))
"""
sents = ["kissa syö karkkii", "jok laulaa tuol puole", "en tiiä oikee et kuka se o", "kyl on hölömöö"]
sentences = [x.split(" ") for x in sents]
print(normalize_sentences(sentences))
"""
#print(generator._translate(["Etelä-Häme k i s s a n i _ j u o k s i _ p o i s"]))
#sents = ["minä nauran ja kovaa", "hattu on päässä aina talvisin"]
#sentences = [x.split(" ") for x in sents]
"""
print(dialectalize_sentences(sentences, "Inkerinsuomalaismurteet"))
print(dialectalize_sentence("minä ihmettelen ja suuresti".split(" "), "Keski-Karjala"))
print(supported_dialects())
"""
#for dialect in supported_dialects():
# print(dialect)
# print(dialectalize_sentences(sentences, dialect))
#print(normalize_sentence("wanha ia aika", language="fin_hist"))
print(dialectalize_sentence("kodin takana on koira", "Inkerinsuomalaismurteet"))