diff options
| author | Jackson Moore <jacksonmoore@tuta.io> | 2018-06-10 18:49:12 +0200 |
|---|---|---|
| committer | Jackson Moore <jacksonmoore@tuta.io> | 2018-06-10 18:49:12 +0200 |
| commit | 76bcbb7f3c3996d3b8c54b002436042e6d2b44a5 (patch) | |
| tree | 3cc906a261040a4337564a1f84956a1e448042b8 /lexicon.py | |
| parent | fafb996b5c9d32bccfe5c3393ea46d2eee5a69df (diff) | |
added node labeling and heading text
Diffstat (limited to 'lexicon.py')
| -rw-r--r-- | lexicon.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,6 @@ from grammar import * from numpy.random import choice, seed +from copy import deepcopy class Lexicon(object): @@ -30,7 +31,7 @@ class Lexicon(object): lexeme = choice(self.categories) else: lexeme = self.categories[index] - return lexeme + return deepcopy(lexeme) def nextLabel(self): nextLabel = 0 |