Commit b4f44ae0 authored by Jogi Hofmüller's avatar Jogi Hofmüller

Delete unused code

parent f13dce05
......@@ -202,7 +202,6 @@ class Gdb:
def printAll(self):
for g in self.glist:
g.names = self.glist.nlist.getUniqueNames(g.num_names)
# print('{} :: {}'.format(g.key, g.render()))
print(g.key),
print(g.render())
......@@ -221,35 +220,11 @@ if __name__ == '__main__':
gdb = Gdb('/tmp/gdb.json')
gdb.loadJSON()
gdb.fillBuffer()
gdb.dumpJSON()
while True:
# gdb.getNextGeruecht()
print(gdb.getNextGeruecht())
# time.sleep(0.1)
time.sleep(0.1)
# gdb.printAll()
# j = '{"sentence": "{} {} {} {}.", "state": 1, "properties": [{"order": 0, "genetiv": false, "type": "name"}, {"female": "ist", "depends": 0, "type": "word", "male": "ist"}, {"order": 1, "genetiv": true, "type": "name"}, {"female": "Gefährtin", "depends": 0, "type": "word", "male": "Gefährte"}]}'
# gdb.addGeruecht(j)
# print('Added Geruecht')
# j = '{"sentence": "{} {} {} Wohnung sehr.", "state": 1, "properties": [{"type": "name", "order": 0, "genetiv": false}, {"depends": 0, "type": "word", "female": "liebt", "male": "liebt"}, {"depends": 0, "type": "word", "female": "ihre", "male": "seine"}]}'
# gdb.addGeruecht(j)
# print('Added Geruecht')
#
# j = '{"value": "Reni Hofmüller", "gender": "female", "genetiv": "s", "state": 1}'
# gdb.addName(j)
# print('Added Name')
# j = '{"value": "Jogi Hofmüller", "gender": "male", "genetiv": "s", "state": 1}'
# gdb.addName(j)
# print('Added Name')
# j = '{"value": "Jane Doe", "gender": "female", "genetiv": "s", "state": 1}'
# gdb.addName(j)
# print('Added Name')
# sys.exit(0)
# for i in range(5):
# print(gdb.getRandomGeruecht())
# for g in gdb.glist:
# print(g.export())
# for n in gdb.glist.nlist:
# print(n.export())
# EOF
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment