Commit 45a1a7a7 authored by Raul Sirel's avatar Raul Sirel
Browse files

update field again

parent 31199ab8
Pipeline #4884 passed with stages
in 24 minutes and 4 seconds
......@@ -43,7 +43,7 @@ def test_mlp_process(mlp: MLP):
assert "texta_facts" in result
assert isinstance(result["texta_facts"], list) is True
if mlp_text["language"]["analysis_lang"] in ("ru", "ar"):
if mlp_text["language"]["analysis"] in ("ru", "ar"):
assert "transliteration" in mlp_text
assert "style" not in mlp_text["text"]
......@@ -136,8 +136,8 @@ class Document:
container = dict()
container["text"] = self.get_words()
texta_facts = self.facts_to_json()
container["language"] = {"detected_lang": self.dominant_language_code,
"analysis_lang": self.analysis_lang}
container["language"] = {"detected": self.dominant_language_code,
"analysis": self.analysis_lang}
if "lemmas" in self.analyzers: container["lemmas"] = self.get_lemma()
if "pos_tags" in self.analyzers: container["pos_tags"] = self.get_pos_tags()
# if "sentiment" in self.analyzers: container["sentiment"] = self.get_sentiment()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment