7e5b737daef8b8949734d51b836a7b5ce1e0866d,insultTagger.py,,annotate,#Any#Any#Any#,35
Before Change
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)
runtime = round(time.time() - start_time, 3)
if output_format is "json":
annotations["runtime"] = runtime
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
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: ContextLab/hypertools
Commit Name: 2df451029d31850d7f5353b3786b875f17f740a5
Time: 2018-04-06
Author: andrew.heusser@gmail.com
File Name: hypertools/tools/load.py
Class Name:
Method Name: load
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