I am a total newbie. I have a custom text document which is a paragraph. I am trying to read it and display using NLTK.
following is my code;
import pandas as pd import numpy as np import matplotlib.pyplot as plt from nltk.corpus import PlaintextCorpusReader corpus_root = '' wordlists = PlaintextCorpusReader(corpus_root, 'evidence.txt') wordlists.fileids() wordlists.words('evidence.txt') print(wordlists.words('evidence.txt'))
I am getting an error;
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x92 in position 19: invalid start byte