Skip to content

Preserve the number of newlines in output TSV file #4

@xegulon

Description

@xegulon

I have used this script to convert BRAT formatted data to CoNLL TSV files.

The problem I have is that when in the original .txt files I find several occurrences of the \n character (let's say 5, like this: \n\n\n\n\n ), it makes no difference in the output with when there is only one \n character. Is it possible to fix this so that there are as many blank lines in the TSV file as there are successive \n in the original file?

Or, is there an option in the standoff2conll.py script I can specify to get what I want?

Thanks a lot for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions