Skip to content
Snippets Groups Projects
Commit 982e1c29 authored by Vriezen, E.C. (Emma)'s avatar Vriezen, E.C. (Emma)
Browse files

Equal words are not not marked as related in any kind of way during mistake checking.

parent b540bcb0
No related branches found
No related tags found
1 merge request!80Sc 134/form mistake detection aa
......@@ -122,6 +122,8 @@ class MistakeFinder:
return semantic_mistake
def _check_form_mistake(self, shd_word, index):
if shd_word.word == "te":
print("te")
form_mistake = False
last_shd_index = self._shadow.find_last_matched_shadow(index)
if last_shd_index < 0:
......@@ -207,7 +209,8 @@ class MistakeFinder:
shd_string = shd_word.word
src_string = src_word.word
related = self._seman_checker.semantically_related(src_string,
shd_string)
shd_string)\
and shd_string != src_string
return related
def form_related(self, src_word, shd_word):
......@@ -222,7 +225,8 @@ class MistakeFinder:
"""
shd_string = shd_word.word
src_string = src_word.word
related = self._form_checker.form_related(src_string, shd_string)
related = self._form_checker.form_related(src_string, shd_string) and\
shd_string != src_string
return related
def print_for_nw(self, source, shadow):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment