Good evening,
Currently experiencing a few issues and appreciate any advice!
- My parse_data_from_file function uses a for loop, which, on testing, only finds 18 sentences in the original dataset. It then fails with a,
‘list’ object has no attribute ‘split’
error on the ‘print(f"First sentence has {len(sentences[0]…’ line. Slightly confused here!
- Slightly separate issue (and unrelated to the above, as I have currently removed this line). When I include my remove_stopwords function, I receive a
‘list’ object has no attribute ‘lower’
error. I included the ‘sentence = sentence.lower()’ argument in my ‘remove_stopwords’ function, as without it, the function would not remove the word ‘I’.
Notebook available for those brave enough to have a look!