Closed ZedYeung closed 6 years ago
I've just found this package when working on one project and as work only with Python 3, I probably can do it, will see tomorrow.
Tasks:
My system as Python 3, So I can't install it, please anyone tell me how to install it.
@Albertkaruna , my fork currently runs on Python 3.6, but it's not yet tested and also requires audiogrep and modified pattern (which most probably wouldn't work):
https://github.com/xenu256/videogrep
https://github.com/xenu256/audiogrep
https://github.com/xenu256/pattern
@xenu256 does pattern officially support python3 at this point?
Also videogrep uses pattern for two search options: the hypernym and parts-of-speech search. I'm wondering how essential those are. Maybe the library shouldn't include pattern by default, and those search options become available only if you have pattern installed. Thoughts?
Doesn't work, it has 1M lines of code and uses sgmllib, which is removed from Python base, everything should be rewritten in lxml I suppose. Probably that just one of problems. I only managed to install it, but, of course, when calling respective functions pattern would fail. Their issue page talks about Beautiful Soup, which also can be used to solve the problem. Probably even easier can be just use NLTK (or just wait for pattern3), but I didn't dig into it much.
P.S. Textblob as I know has integrated WordNet and works under Py3: http://stevenloria.com/tutorial-wordnet-textblob/
I have decided to port it to nltk, dropping pattern altogether.
what is re_search here? should be re.search?
possible_words = re_search(text, pos)
Never mind, found it, it is just not imported.
Hi there, I've read through all comments in here but... still am not any wiser wrt the status of this/the original question.
should work with python3 now - I've moved pattern.en to an optional requirement.
Absolutely - there are a few dependencies that add extra functionality which require python2 but they aren't really essential...