summaryrefslogtreecommitdiff
path: root/lexicon.py
diff options
context:
space:
mode:
authorHouyhnhnm <hykusb@bitmai.la>2018-06-03 19:34:34 +0200
committerHouyhnhnm <hykusb@bitmai.la>2018-06-03 19:34:34 +0200
commit6f14ded166e35879e0522f2e62347a3a709518e4 (patch)
treea191d9f3b020a94b4769293772939c8fbf15f2f4 /lexicon.py
parent01071c8123e6b30eeff88272bf4fc7325d62dd5a (diff)
feature unification, spellout
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)