7e5b737daef8b8949734d51b836a7b5ce1e0866d,insultTagger.py,,annotate,#Any#Any#Any#,35

Before Change


    start_time = time.time()

    for text in texts:
        tokens = tokenizeAndFilter(text)
        result = model.analyze(tokens)
        print(json.dumps(result, indent=4, sort_keys=True))
        if result["entities"] is not None:
            entities = result["entities"]
            annotations.append(entities)
    

After Change


            annotations.append(entities)
    """

    annotations = model.analyze(texts, output_format)
    runtime = round(time.time() - start_time, 3)

    if output_format is "json":
        annotations["runtime"] = runtime
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: kermitt2/delft
Commit Name: 7e5b737daef8b8949734d51b836a7b5ce1e0866d
Time: 2018-05-01
Author: patrice.lopez@science-miner.com
File Name: insultTagger.py
Class Name:
Method Name: annotate


Project Name: NeuroTechX/moabb
Commit Name: bd7fb0b678678a421e2feb2a850aa17721128a12
Time: 2018-02-27
Author: vjayaram@danube.is.localnet
File Name: examples/MotorImagery/two_class_motor_imagery.py
Class Name:
Method Name:


Project Name: estnltk/estnltk
Commit Name: f0a734b1c9bf96b6e5aec04ba1f2964d15f867e7
Time: 2014-11-19
Author: brainscauseminds@gmail.com
File Name: estnltk/morf.py
Class Name: PyVabamorfAnalyzer
Method Name: analyze