How to creat a jsonl file with a raw text in format of .txt

Sorry, I am very first in the NLP area, and I want to use prodigy to classify some paragraph text with long multisentences,like"XXXXXXXXXXXX.XXXXXXXXXXXX.XXXXXXXXXX.XXXXXXX",they are in format of .txt, how can I transform this in to a format prodigy can read?

Please help me with some advice, or some example, I am feeling prodigy is not as beginer friendly as spaCy.

They provide json examples in the documentation. Just open your txt in python and send it to a jsonl, see this example jsonlines - Create JSONL with Python - Stack Overflow

1 Like

Thanks a lot