From 6f14ded166e35879e0522f2e62347a3a709518e4 Mon Sep 17 00:00:00 2001 From: Houyhnhnm Date: Sun, 3 Jun 2018 19:34:34 +0200 Subject: feature unification, spellout --- lexicon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lexicon.py') diff --git a/lexicon.py b/lexicon.py index c7eef6a..cd6d90a 100644 --- a/lexicon.py +++ b/lexicon.py @@ -35,7 +35,7 @@ class Lexicon(object): def nextLabel(self): nextLabel = 0 if len(self.categories) > 0: - lexeme = self.categories[-1].label + 1 + nextLabel = self.categories[-1].label + 1 return nextLabel def print(self): @@ -62,6 +62,7 @@ class Lexeme(object): self.label = 'unlabeled' def print(self): + print("\n"+str(self.label)) self.cadence.print() print("anticipation:", self.anticipation) print("prolongation:", self.prolongation) -- cgit v1.2.3