284e88258b70a6695f604247527ceb772b8d46ba,anago/train.py,,main,#,13

Before Change


    train_data, valid_data, test_data, word_to_id, entity_to_id = raw_data

    config = Config(word_to_id, entity_to_id)
    config.embedding_path = os.path.join(os.path.dirname(__file__), "models/embeddings.npz")
    config.word_to_id = word_to_id

    X_train = preprocess.pad_words(train_data["X"], config)
    X_test = preprocess.pad_words(test_data["X"], config)

After Change


    if not args.data_path:
        raise ValueError("Must set --data_path to conll data directory")

    config = Config()

    vocab_words, vocab_tags = reader.load_vocab(args.data_path, args.glove_path)

    embeddings = reader.get_glove_vectors(vocab_words, args.glove_path, dim=100)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: Hironsan/anago
Commit Name: 284e88258b70a6695f604247527ceb772b8d46ba
Time: 2017-07-24
Author: light.tree.1.13@gmail.com
File Name: anago/train.py
Class Name:
Method Name: main


Project Name: home-assistant/home-assistant
Commit Name: 9b643d57f0d79232e81e930d602d3718753bcb38
Time: 2015-03-18
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/__init__.py
Class Name: HomeAssistant
Method Name: __init__


Project Name: home-assistant/home-assistant
Commit Name: 9b643d57f0d79232e81e930d602d3718753bcb38
Time: 2015-03-18
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/remote.py
Class Name: HomeAssistant
Method Name: __init__