clips / pattern

Web mining module for Python, with tools for scraping, natural language processing, machine learning, network analysis and visualization.
https://github.com/clips/pattern/wiki
BSD 3-Clause "New" or "Revised" License
8.75k stars 1.58k forks source link

pattern3 PyPI package missing two lines of code in text/tree.py (+ more errors) #213

Closed eyb1 closed 6 years ago

eyb1 commented 6 years ago

In site-packages\pattern3\text\tree.py", line 37, using pattern3, there is a IndentationError: expected an indented block. I checked the code and it appears the following two lines are missing from the first try block in that file:

    from itertools import chain
    from itertools import izip

There are other issues even if that is resolved. Haven't got time right now to continue debugging this... although I am running Windows so perhaps this will work just fine on my Unix machines. Just reporting for reference.

eyb1 commented 6 years ago

Issue is resolved by installing from source. Download, cd, and pip install ..