Ejemplo n.º 1
0
def intitfromfile(filename):
    words = [] 
    with open(filename, 'r') as f:
        words = json.load(f)
    for word in words:
        dic_tree.insert_word(word['word'],json.dumps(word))
Ejemplo n.º 2
0
def insertWord(item):
    dic_tree.insert_word(item['word'], json.dumps(item))
    return