Merge remote-tracking branch 'origin/main'

Merge popravkov vrste in celega brancha z definicijami, kanonizirano obliko ter kodo ijs-ja
This commit is contained in:
marko.ferme
2023-01-10 12:00:54 +01:00
8 changed files with 1241 additions and 22 deletions
+3
View File
@@ -10,8 +10,11 @@ nlp_loaded = True
sent_extractor = re.compile(r"# sent_id = \d+\.\d+(.*?)\n\n", re.MULTILINE | re.DOTALL)
def raw_text_to_conllu(text):
try:
if text == '' or text is None:
raise Exception("Text can not be empty (when trying to make conllu for it)")
docall = nlpSlo(text)
docallconllu = docall.to_conll()