diff options
| author | Houyhnhnm <hykusb@bitmai.la> | 2018-06-03 19:34:34 +0200 |
|---|---|---|
| committer | Houyhnhnm <hykusb@bitmai.la> | 2018-06-03 19:34:34 +0200 |
| commit | 6f14ded166e35879e0522f2e62347a3a709518e4 (patch) | |
| tree | a191d9f3b020a94b4769293772939c8fbf15f2f4 /lexicon.py | |
| parent | 01071c8123e6b30eeff88272bf4fc7325d62dd5a (diff) | |
feature unification, spellout
Diffstat (limited to 'lexicon.py')
| -rw-r--r-- | lexicon.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |