f558b935a7d4dca8328c1201a26b762029695e8f,demo.py,,,#,12

Before Change



        crf = CRFSuite(crf_path)
        crf.create_input_file(dataset, "train")
        crf.train()
        crf.create_input_file(dataset, "test")
        crf.test()
    except KeyError:
        print("Please define a config.ini file as described above")

After Change


        ReadFromAnnJsonAnnotator(ann_path).annotate(dataset)
        ExclusiveNLDefiner().define(dataset)
        print(json.dumps([ann.text for ann in dataset.annotations() if ann.is_nl if len(ann.text) < 36], indent=4, sort_keys=True))  // print the NL ones
        print(len([True for ann in dataset.annotations() if ann.is_nl]))
        // SimpleLabeler().label(dataset)
        // SimpleFeatureGenerator().generate(dataset)
        //
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: Rostlab/nalaf
Commit Name: f558b935a7d4dca8328c1201a26b762029695e8f
Time: 2015-06-17
Author: carsten.uhlig@gmail.com
File Name: demo.py
Class Name:
Method Name:


Project Name: ncullen93/torchsample
Commit Name: 2154d789ef0d79debe2cc522751ae7072e8b22dc
Time: 2017-04-28
Author: ncullen@modv-vlan533.0527.apn.wlan.wireless-pennnet.upenn.edu
File Name: torchsample/modules/super_module.py
Class Name: SuperModule
Method Name: predict_on_batch


Project Name: ncullen93/torchsample
Commit Name: 2154d789ef0d79debe2cc522751ae7072e8b22dc
Time: 2017-04-28
Author: ncullen@modv-vlan533.0527.apn.wlan.wireless-pennnet.upenn.edu
File Name: torchsample/modules/super_module.py
Class Name: SuperModule
Method Name: predict_loader