pattern
pattern copied to clipboard
Web mining module for Python, with tools for scraping, natural language processing, machine learning, network analysis and visualization.
Correct results for `pattern.en.lemma`/`pattern.en.conjugate`/`pattern.en.tenses` with particle verbs by splitting the input into verb stem and sattelites (first word and everything else) before doing the base class `_Verb` processing. example: ```...
Made it easy to find license
The `singularize()` function used on the string `'thieves'` returns `'thieve'` while when used on `'glass'` it returns `'glas'`.
Since Python 3.7, all StopIteration exceptions raised inside a generator are transformed into RuntimeError (see [PEP-0479](https://www.python.org/dev/peps/pep-0479/#id38) and [this answer from StackOverflow](https://stackoverflow.com/a/51701040)). This new behavior made _pattern_ unusable for all Python3.7+...
can someone helps please? def suite(): suite = unittest.TestSuite() suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestLexicon)) suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestFrequency)) suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestModel)) suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestMorphology)) suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestContext)) suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestEntities)) suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestParser)) suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestSentiment)) suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestMultilingual)) it looks like all the tests cannot be loaded at all.
We're having an issue with pattern==3.6 where if there are duplicates, etc in the model documents, getting the nsmallest fails for vector_space_search: ```python from pattern.en import lexeme from pattern.vector import...
generator is not in 3.7 so it is causing error
Hey, This package is really great. When will it support python 3.7? Thx
ERROR: Command errored out with exit status 1: command: /opt/conda/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-fpmqodai/mysqlclient/setup.py'"'"'; __file__='"'"'/tmp/pip-install-fpmqodai/mysqlclient/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-fpmqodai/mysqlclient/pip-egg-info cwd: /tmp/pip-install-fpmqodai/mysqlclient/ Complete...
I'm using Anaconda and i retrieve this message "IndentationError: expected an indented block" when I apply this code "from pattern3.en import tag" 