Just installed the latest NLTK and trying to use POS tagging of a simple instance but getting the following issue:
Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:43:06) [MSC v.1600 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> custtext = "Official account for Microsoft Customer Service & Support. We’re available Monday- Friday from 4a-10p PST and on Saturday and Sunday from 4a-4p PST."
>>> import nltk
>>> sent_tokens = nltk.word_tokenize(custtext)
>>> sent_tokens
['Official', 'account', 'for', 'Microsoft', 'Customer', 'Service', '&', 'Support', '.', 'We', "'re", 'available', 'Monday-', 'Friday', 'from', '4a-10p', 'PST', 'and', 'on', 'Saturday', 'and', 'Sunday', 'from', '4a-4p', 'PST', '.']
>>> nltk.pos_tag(sent_tokens)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\PYTHON34\lib\site-packages\nltk-3.2-py3.4-win32.egg\nltk\tag\__init__.py", line 110, in pos_tag
tagger = PerceptronTagger()
File "C:\PYTHON34\lib\site-packages\nltk-3.2-py3.4-win32.egg\nltk\tag\perceptron.py", line 141, in __init__
self.load(AP_MODEL_LOC)
File "C:\PYTHON34\lib\site-packages\nltk-3.2-py3.4-win32.egg\nltk\tag\perceptron.py", line 209, in load
self.model.weights, self.tagdict, self.classes = load(loc)
File "C:\PYTHON34\lib\site-packages\nltk-3.2-py3.4-win32.egg\nltk\data.py", line 801, in load
opened_resource = _open(resource_url)
File "C:\PYTHON34\lib\site-packages\nltk-3.2-py3.4-win32.egg\nltk\data.py", line 924, in _open
return urlopen(resource_url)
File "C:\PYTHON34\lib\urllib\request.py", line 161, in urlopen
return opener.open(url, data, timeout)
File "C:\PYTHON34\lib\urllib\request.py", line 463, in open
response = self._open(req, data)
File "C:\PYTHON34\lib\urllib\request.py", line 486, in _open
'unknown_open', req)
File "C:\PYTHON34\lib\urllib\request.py", line 441, in _call_chain
result = func(*args)
File "C:\PYTHON34\lib\urllib\request.py", line 1252, in unknown_open
raise URLError('unknown url type: %s' % type)
urllib.error.URLError: <urlopen error unknown url type: c>