I have a text file with plain text sentences in the Afrikaans language. I would like to be able to perform nltk corpus functions on this text file, but can’t find any examples of how to do this.
I would like to do things such as:
mytext.concordance("woord")
mytext.similar("woord")
Can anyone help me?
Managed to figure something out:
This assumes your corpora text file is in C:\nltk_data\corpora\afrikaans\afrikaans.txt