Skip to content

Instantly share code, notes, and snippets.

this is the first line .
this is the second line .
this is the third line .
@yasufumy
yasufumy / data.py
Last active August 22, 2019 09:06
import os
import torch
import lineflow as lf
class Dictionary(object):
def __init__(self):
self.word2idx = {}
self.idx2word = []
def add_word(self, word):