Let's suppose that I have a document like that:
document = ["This is a document\nwhich has to be splitted\nOK/Right?"]
and I would like to split this document (for start) wherever I encounter '\n' or '/'.
So the document above should be transformed to the following one:
document = ["This is a document", "which has to be splitted", "OK", "Right?"]
How can I do this?
Keep in mind that there may be other special characters etc in the text and I do not want to remove them for now.