d1e6f8655410239f50cdda35f31377839cf630fb,kraken/ketos.py,,train,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,80

Before Change


    Trains a model from image-text pairs.
    
    st_time = time.time()
    if load is None:
        click.echo("Training from scratch not yet supported.")
        ctx.exit(1)
    if ctx.meta["verbose"] > 0:
        click.echo(u"[{:2.4f}] Building ground truth set from {} line images".format(time.time() - st_time, len(ground_truth)))
    else:
        spin("Building ground truth set")

After Change


            spin("Initializing model")

        newcodec = Codec()
        code2char, char2code = {}, {}
        for code, char in enumerate([126] + [ord(c) for c in sorted(list(gt_set.training_alphabet.keys()))]):
            code2char[code] = chr(char)
            char2code[chr(char)] = code
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: mittagessen/kraken
Commit Name: d1e6f8655410239f50cdda35f31377839cf630fb
Time: 2017-07-11
Author: andreas.buettner@uni-wuerzburg.de
File Name: kraken/ketos.py
Class Name:
Method Name: train


Project Name: nilearn/nilearn
Commit Name: a62c134e800b14666da14e7ffa82bb7f91f9b2cb
Time: 2013-08-26
Author: philippe.gervais@inria.fr
File Name: nisl/honorio_samaras.py
Class Name:
Method Name: honorio_samaras


Project Name: RasaHQ/rasa
Commit Name: 3f53ea45a17dd29b8ef20db08484e7537c6aa4e3
Time: 2019-02-12
Author: t.wochinger@rasa.com
File Name: rasa/cli/run.py
Class Name:
Method Name: run


Project Name: NervanaSystems/nlp-architect
Commit Name: 794bd558da80b65713b51a964ec61e7ef36d4bf2
Time: 2018-05-14
Author: peteriz@users.noreply.github.com
File Name: examples/intent_extraction/interactive.py
Class Name:
Method Name: