From 41e3b9f9ec718af683e63f67786185e9808cb56a Mon Sep 17 00:00:00 2001
From: Romeo <r.haak@student.ru.nl>
Date: Sat, 30 Nov 2019 18:16:28 +0100
Subject: [PATCH] Printed in an alternative way to check if pairing is working.

---
 umbra/statistics.py | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/umbra/statistics.py b/umbra/statistics.py
index ae8ec932..eb96fe78 100644
--- a/umbra/statistics.py
+++ b/umbra/statistics.py
@@ -31,8 +31,9 @@ class Statistics:
         print('Romeo')
         self._strategy = SaaRomeo()
         source_align, shadow_align = self._strategy.align(source, shadow)
-        print([str(x) for x in source_align])
-        print([str(x) for x in shadow_align])
+        for s_word in shadow_align:
+            if s_word.has_source():
+                print(f'source: {s_word.source} shadow: {s_word}')
         correctness = self._strategy.correctly_shadowed(source)
 
         # Reset the is_shadowed property
@@ -51,10 +52,12 @@ class Statistics:
         # Alignment 2
         print('\n Emma')
         self._strategy = AnchorAlgorithm()
-        source_align, shadow_align = self._strategy.align(source, shadow)
-        print([str(x) for x in source_align])
-        print([str(x) for x in shadow_align])
+        source_align_em, shadow_align_em = self._strategy.align(source, shadow)
+        for s_word in shadow_align_em:
+            if s_word.has_source():
+                print(f'source: {s_word.source} shadow: {s_word}')
         correctness = self._strategy.correctly_shadowed(source)
 
+
         return source_align, shadow_align, correctness
 
-- 
GitLab