Commit ae08eae9 authored by Veronika Burgerova's avatar Veronika Burgerova
Browse files

erich modifications

parent 87f43ed4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ class Word:


    def _er_to_ich(self, protg: Protagonist):
        if self.lemma == protg.name or not self.lemma:
        if self.lemma == protg.name or not self.lemma or self.anaphor == protg.name:
            self.new_form = erich_rule_replace_name(self, protg)
        if self.member == Member.pred:
            if "p3" in self.tag:
+1 −1
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@ from utils import *
def erich_rule_replace_name(word, protg: Protagonist):
    for form in protg.forms:
        case = get_tag_part(word.tag, "c")
        if form[0] == word.word:
        if form[0] == word.word or form[0] == word.anaphor:
            skip_name = not decide_use_name(0.4) and case == '1'
            if skip_name and word.parent_node.word != "<coord>":
                return ""