summaryrefslogtreecommitdiff
path: root/lexicon.py
diff options
context:
space:
mode:
authorJackson Moore <jacksonmoore@tuta.io>2018-06-10 18:49:12 +0200
committerJackson Moore <jacksonmoore@tuta.io>2018-06-10 18:49:12 +0200
commit76bcbb7f3c3996d3b8c54b002436042e6d2b44a5 (patch)
tree3cc906a261040a4337564a1f84956a1e448042b8 /lexicon.py
parentfafb996b5c9d32bccfe5c3393ea46d2eee5a69df (diff)
added node labeling and heading text
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 26488f2..a2da32e 100644
--- a/lexicon.py
+++ b/lexicon.py
@@ -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