flair.datasets.entity_linking.determine_tsv_file#
- flair.datasets.entity_linking.determine_tsv_file(filename, data_folder, cut_multisense=True)View on GitHub#
Checks if the converted .tsv file already exists and if not, creates it.
- Parameters:
filename (
str
) – The name of the file.data_folder (
Path
) – The name of the folder in which the CoNLL file should reside.cut_multisense (
bool
) – Determines whether the wn30_key tag should be cut if it contains multiple possible senses. If True only the first listed sense will be used. Otherwise, the whole list of senses will be detected as one new sense. The default is True.
- Return type:
str
- Returns:
the name of the file.