Go to: Na-Rae Han's home page  

Python 3 Notes

        [ HOME | LING 1330/2330 ]

Python & NLTK Frequently Asked Questions

(Updated 6/1/2018)

Python

  1. Accessing command history: How do I quickly bring up a previously entered command?
    [link]
  2. I dislike using "Ctrl-p/n" (or "Alt-p/n") keys for command history. Can I use ⇧ Up Arrow and ⇩ Down Arrow instead like in most other shell environments?
    [link]
  3. How do I save my IDLE shell session into a file?
    [link]
  4. Where is my Python installed?
    [link]
  5. (Mac) IDLE prints a WARNING message about the Tcl/Tk version. How can I fix this?
    [link]
  6. (Mac) I have an older version (10.6, 10.7, 10.8) of Mac OS. How do I install Python?
    [link]
  7. (Win) IDLE wants to save my scripts in a weird system directory. How do I change it to use a folder of my choice?
    [link]
  8. (Mac) IDLE "starts in" the 'Documents' folder by default and prompts to save all my scripts there. But I want to organize my Python scripts into a subfolder. How do I change this setting?
    [link]
  9. (Win) My file names show up without the extensions (.txt, .py, .pdf, etc.). How do I make them visible?
    [link]
  10. I am trying out these commands that I found on a Python tutorial site, but I keep getting an error. What is wrong?
    [link]
  11. How do I refer to a file in Python?
    [link]
  12. I have this file sitting in my Desktop/My Documents ... area. How do I find its full file path and name?
    [link]
  13. I am having trouble reading/writing/loading a particular file. What's wrong?
    [link]
  14. OK, so using the full file path and name always works. But I've seen files being referred to by the file name only. How is it done?
    [link]
  15. How do I work with CWD (current working directory) in Python shell?
    [link]
  16. (Win) My text file shows up with no line break. What gives?
    [link]

NLTK

  1. How do I install NLTK 3 (Mac/Linux)?
    [link]
  2. How do I install NLTK 3 (Windows)?
    [link]
  3. I finished installing NLTK through pip, but import nltk still gives an error. What's happening?
    [link]
  4. I get a "Protocol error" (screenshot) while trying to install NLTK. Help! (Mac)
    [link]
  5. How do I download corpora and other data for NLTK?
    [link]
  6. I get an "SSL error" (screenshot) while trying to download NLTK data. Help! (Mac)
    [link]
  7. Where do I begin with NLTK?
    [link]
  8. Where is NLTK installed?
    [link]
  9. Where is my NLTK data located on my computer?
    [link]
  10. The system gives me an error when I try to access Brown/Gutenberg/Inaugural/... corpus. How to fix?
    [link]
  11. How do I add my NLTK data's location to NLTK's data directory path? (NLTK 3)
    [link]
  12. How do I modify an NLTK module?
    [link]

General Computing Tips

  1. How do I take a screen shot?
    [link]
  2. What text editing programs should I use?
    [link]