NLP-with-Python
NLP-with-Python copied to clipboard
IndexError: index 0 is out of bounds for axis 0 with size 0
doc_sample = documents[documents['index'] == 4310].values[0][0]
print('original document: ') words = [] for word in doc_sample.split(' '): words.append(word) print(words) print('\n\n tokenized and lemmatized document: ') print(preprocess(doc_sample))
when I am running these lines in my document its showing indexerror please help IndexError: index 0 is out of bounds for axis 0 with size 0