I'm not sure how this relates to Anaconda, but it helped me get pattern.en working in python 3.6 :
git clone -b development https://github.com/clips/pattern cd pattern sudo python3.6 setup.py install
https://github.com/clips/pattern/issues/62
I had some SSL errors during installation on my mac (10.11.6) that were fixed by running this code in python (3.6):
import nltk import ssl try: _create_unverified_https_context = ssl._create_unverified_context except AttributeError: pass else: ssl._create_default_https_context = _create_unverified_https_context nltk.download('wordnet_ic')
obviously there is a better way to handle an ssl file like this fwiw: fooobar.com/questions/265446 / ...
health check:
user@USDR00253 ~> python3.6 Python 3.6.4 (v3.6.4:d48ecebad5, Dec 18 2017, 21:07:28) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> >>> from pattern.en import conjugate, lemma, lexeme, parse >>> >>> print(parse('ridden', relations=True, lemmata=True)) ridden/VBN/B-VP/O/O/ride >>>
pattern.en finally launched in python3!
source share