Skip to content
Snippets Groups Projects
Commit e728ac1d authored by Alfen, T. van (Tanja)'s avatar Alfen, T. van (Tanja)
Browse files

Mistake finder under 'Emma' did not get parser argument for sementic mistake...

Mistake finder under 'Emma' did not get parser argument for sementic mistake recognition. It now uses the MistakeFinder object initialised in the constructor.
parent 3558aa01
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,7 @@ class Statistics:
# Alignment 1 (Thijs) (yet to be implemented)
# Alignment 2
print('\n Emma')
print('\nEmma')
self._strategy = AnchorAlgorithm()
source_align_em, shadow_align_em = self._strategy.align(source_em,
shadow_em)
......@@ -65,9 +65,7 @@ class Statistics:
if s_word.has_source():
print(f'source: {s_word.source} shadow: {s_word}')
correctness = self._strategy.correctly_shadowed(source_em)
# TODO: Make the mistake finding work with the statement below
finder = MistakeFinder()
finder.start(source_align_em, shadow_align_em)
self._mistake_finder.start(source_align_em, shadow_align_em)
return source_align_em, shadow_align_em, correctness
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