c2e63ae0cec5359300cd8dbc93ee47f1fbd582aa,tests/train_test.py,TrainerTest,test_train,#TrainerTest#,14
Before Change
class TrainerTest(unittest.TestCase):
def test_train(self):
DATA_ROOT = os.path.join(os.path.dirname(__file__), "../data/conll2003/en/ner")
SAVE_ROOT = os.path.join(os.path.dirname(__file__), "../models") // trained model
LOG_ROOT = os.path.join(os.path.dirname(__file__), "../logs") // checkpoint, tensorboard
embedding_path = os.path.join(os.path.dirname(__file__), "../data/glove.6B/glove.6B.100d.txt")
After Change
embeddings = load_word_embeddings(p.vocab_word, EMBEDDING_PATH, model_config.word_embedding_size)
model_config.char_vocab_size = len(p.vocab_char)
model = SeqLabeling(model_config, embeddings, len(p.vocab_tag))
trainer = anago.Trainer(model,
training_config,
checkpoint_path=LOG_ROOT,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances
Project Name: Hironsan/anago
Commit Name: c2e63ae0cec5359300cd8dbc93ee47f1fbd582aa
Time: 2017-11-18
Author: light.tree.1.13@gmail.com
File Name: tests/train_test.py
Class Name: TrainerTest
Method Name: test_train
Project Name: Hironsan/anago
Commit Name: b31b0157be35bda89ce8581a494213572b94182b
Time: 2017-11-18
Author: light.tree.1.13@gmail.com
File Name: tests/eval_test.py
Class Name: EvaluatorTest
Method Name: test_eval
Project Name: Hironsan/anago
Commit Name: 7744fc52fc49e5f7cd3068205f56a065258470f3
Time: 2017-11-18
Author: light.tree.1.13@gmail.com
File Name: tests/tagger_test.py
Class Name: TaggerTest
Method Name: setUp