+ def add_full_word(self, word_id, word, word_token=None):
+ with self.conn.cursor() as cur:
+ cur.execute("""INSERT INTO word (word_id, word_token, word)
+ VALUES (%s, %s, %s)
+ """, (word_id, ' ' + (word_token or word), word))
+ self.conn.commit()
+
+