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)
//