python-arpa icon indicating copy to clipboard operation
python-arpa copied to clipboard

:snake: Python library for n-gram models in ARPA format

Results 8 python-arpa issues
Sort by recently updated
recently updated
newest added

Bumps [babel](https://github.com/python-babel/babel) from 2.9.0 to 2.9.1. Release notes Sourced from babel's releases. Version 2.9.1 Bugfixes The internal locale-data loading functions now validate the name of the locale file to be...

dependencies

Bumps [urllib3](https://github.com/urllib3/urllib3) from 1.26.4 to 1.26.5. Release notes Sourced from urllib3's releases. 1.26.5 :warning: IMPORTANT: urllib3 v2.0 will drop support for Python 2: Read more in the v2.0 Roadmap Fixed...

dependencies

The model's vocab only returns the unigrams: ``` >>> import arpa >>> x = arpa.loadf('big.arpa') >>> x[0].vocabulary() ['!', '"', '#', '$', '%', '&', "'", '(', ')', '*', '+', ',', '-',...

https://github.com/sfischer13/python-arpa/blob/2284b815866aeb08f65f786da416e78d7937ee1d/arpa/models/base.py#L34-L45 This try...catch mechanism to implement the backoff may not be efficient enough. According to the python [documentation](https://docs.python.org/3.6/faq/design.html#how-fast-are-exceptions): > A try/except block is extremely efficient if no exceptions are raised....

https://github.com/sfischer13/python-arpa/blob/2284b815866aeb08f65f786da416e78d7937ee1d/arpa/parsers/quick.py#L21 The regular expression has an error here. Consider the case where the line is: `-2.310726 maybe when 9.609759e-05` The exponent in the backoff weight is not correctly parsed --...

Bumps [certifi](https://github.com/certifi/python-certifi) from 2020.12.5 to 2022.12.7. Commits 9e9e840 2022.12.07 b81bdb2 2022.09.24 939a28f 2022.09.14 aca828a 2022.06.15.2 de0eae1 Only use importlib.resources's new files() / Traversable API on Python ≥3.11 ... b8eb5e9 2022.06.15.1...

dependencies

Bumps [joblib](https://github.com/joblib/joblib) from 1.0.1 to 1.2.0. Changelog Sourced from joblib's changelog. Release 1.2.0 Fix a security issue where eval(pre_dispatch) could potentially run arbitrary code. Now only basic numerics are supported....

dependencies