Output Formats - Rostlab/nalaf GitHub Wiki

Simple JSON export

documents = {
	'pubmedid' : { # one document
		'part_id' : 'raw_text',
		'counter' : 'counter_of_position_in_text', # to sort text instead of using the part_id
		'annotations' : [ # one annotation that is in part 'part_id'
			{
				'text' : 'mutation_mention_text',
				'start' : 'start_pos_char in part of mutation mention',
				'end' : 'end_pos_char in part of mutation mention',
				'prob' : '0-1 (with 1 being annotated mutation mention)'
			}, # might be more annotation in that part
		]
	}
}