flair.datasets.biomedical.CoNLLWriter#

class flair.datasets.biomedical.CoNLLWriter(sentence_splitter)View on GitHub#

Bases: object

Utility class for writing InternalBioNerDataset to CoNLL files.

__init__(sentence_splitter)View on GitHub#

Initialize CoNLLWriter.

Parameters:

sentence_splitter (SentenceSplitter) – Sentence splitter which segments the text into sentences and tokens.

Methods

__init__(sentence_splitter)

Initialize CoNLLWriter.

process_dataset(datasets, out_dir)

write_to_conll(dataset, output_file)

process_dataset(datasets, out_dir)View on GitHub#
write_to_conll(dataset, output_file)View on GitHub#