summaryrefslogtreecommitdiff
path: root/lexicon.py
diff options
context:
space:
mode:
Diffstat (limited to 'lexicon.py')
-rw-r--r--lexicon.py3
1 files changed, 2 insertions, 1 deletions
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)