283c21ffe41229dcc9790ae400b6833c50960a57,ikyCore/sequenceLabeler.py,,train,#Any#,24

Before Change



    train_sents = []
    for item in cursor:
        train_sents.append(ast.literal_eval(item["item"].encode("ascii", "ignore")))

    X_train = [_sent2features(s) for s in train_sents]
    y_train = [_sent2labels(s) for s in train_sents]

After Change



    trainSentences = []
    for item in labeledSentences:
        trainSentences.append(item["data"])

    features = [sentToFeatures(s) for s in trainSentences]
    labels = [sentToLabels(s) for s in trainSentences]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: alfredfrancis/ai-chatbot-framework
Commit Name: 283c21ffe41229dcc9790ae400b6833c50960a57
Time: 2016-07-02
Author: alfred.francis@pearldatadirect.com
File Name: ikyCore/sequenceLabeler.py
Class Name:
Method Name: train


Project Name: akkana/scripts
Commit Name: 4b660c262a857f0d3bcc41d56e12af35f7d3f6ec
Time: 2018-10-26
Author: akkana@shallowsky.com
File Name: epubtag.py
Class Name: EpubBook
Method Name: get_matches


Project Name: tensorflow/tensorboard
Commit Name: 005be3f794c134d26fc9adb98c4dffcbccd33f89
Time: 2019-05-10
Author: jameswex@users.noreply.github.com
File Name: tensorboard/plugins/interactive_inference/witwidget/notebook/visualization.py
Class Name: WitConfigBuilder
Method Name: _convert_json_to_tf_examples