Python Forum
Analyzing large text file with nltk.corpus (stopwords )
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Analyzing large text file with nltk.corpus (stopwords )
#8
No, !r is causing the apostrophes. What it's showing is how the computer sees the words, and that the words are exactly what was expected. The !r would show whitespace or non-printing characters we would not see in the standard string print form, but it's not showing any such thing. So the problem is not with the words you are counting.

You need to check stoplist to make sure it's what you think it is. You need to make sure the words you think shouldn't be in the output actually are in stoplist. Looking at the nltk book, they should be, so it's not clear to me what is going on. Print stoplist so we can be sure they're in there.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
RE: Analyzing large text file with nltk.corpus (stopwords ) - by ichabod801 - Jun-02-2019, 01:33 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Converted EXE file size is too large Rajasekaran 0 1,542 Mar-30-2023, 11:50 AM
Last Post: Rajasekaran
Thumbs Up Need to compare the Excel file name with a directory text file. veeran1991 1 1,155 Dec-15-2022, 04:32 PM
Last Post: Larz60+
  validate large json file with millions of records in batches herobpv 3 1,310 Dec-10-2022, 10:36 PM
Last Post: bowlofred
  Modify values in XML file by data from text file (without parsing) Paqqno 2 1,733 Apr-13-2022, 06:02 AM
Last Post: Paqqno
  Pyinstaller distribution file seems too large hammer 4 2,790 Mar-31-2022, 02:33 PM
Last Post: snippsat
  Initializing, reading and updating a large JSON file medatib531 0 1,811 Mar-10-2022, 07:58 PM
Last Post: medatib531
  Converted Pipe Delimited text file to CSV file atomxkai 4 7,060 Feb-11-2022, 12:38 AM
Last Post: atomxkai
  Help with simple nltk Chatbot Extra 3 1,945 Jan-02-2022, 07:50 AM
Last Post: bepammoifoge
  [split] How to convert the CSV text file into a txt file Pinto94 5 3,411 Dec-23-2020, 08:04 AM
Last Post: ndc85430
  Saving a download of stopwords (nltk) Drone4four 1 9,402 Nov-19-2020, 11:50 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020