The QuantGov Library

QuantGov, updated 🕥 2023-02-11 01:10:45

QuantGov

========== ==================== Branch Build Status ========== ==================== Master |Master Test Status| Dev |Dev Test Status| ========== ====================

The QuantGov library is a companion to the QuantGov Platform <http://www.quantgov.org>_. It provides an easy way to start a new project using the quantgov start set of commands, and also provides a set of classes and functions often used in the QuantGov framework.

To install the library, use pip install quantgov.

Documentation is available at http://docs.quantgov.org.

.. |Master Test Status| image:: https://travis-ci.org/QuantGov/quantgov.svg?branch=master :target: https://travis-ci.org/QuantGov/quantgov

.. |Dev Test Status| image:: https://travis-ci.org/QuantGov/quantgov.svg?branch=dev :target: https://travis-ci.org/QuantGov/quantgov

How to Contribute

. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.

. Fork the repository_ on GitHub to start making your changes to the dev branch (or branch off of it).

. Write a test which shows that the bug was fixed or that the feature works as expected.

. Send a pull request and bug the maintainer until it gets merged and published. Make sure to add yourself to AUTHORS_.

.. _the repository: http://github.com/quantgov/quantov .. _AUTHORS: https://github.com/quantgov/quantgov/blob/master/AUTHORS.rst

Issues

Bump ipython from 7.7.0 to 8.10.0

opened on 2023-02-11 01:10:45 by dependabot[bot]

Bumps ipython from 7.7.0 to 8.10.0.

Release notes

Sourced from ipython's releases.

See https://pypi.org/project/ipython/

We do not use GitHub release anymore. Please see PyPI https://pypi.org/project/ipython/

7.9.0

No release notes provided.

7.8.0

No release notes provided.

Commits
  • 15ea1ed release 8.10.0
  • 560ad10 DOC: Update what's new for 8.10 (#13939)
  • 7557ade DOC: Update what's new for 8.10
  • 385d693 Merge pull request from GHSA-29gw-9793-fvw7
  • e548ee2 Swallow potential exceptions from showtraceback() (#13934)
  • 0694b08 MAINT: mock slowest test. (#13885)
  • 8655912 MAINT: mock slowest test.
  • a011765 Isolate the attack tests with setUp and tearDown methods
  • c7a9470 Add some regression tests for this change
  • fd34cf5 Swallow potential exceptions from showtraceback()
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/QuantGov/quantgov/network/alerts).

Add capability to run multiple NLP commands at once

opened on 2020-08-07 14:39:34 by jnelson16

Rather than reading or streaming in text multiple times, we could save computing power by reading once, and then running all or some of the NLP commands on the text, returning multiple sets of data.

fix Flesch reading score

opened on 2020-07-06 18:13:53 by jnelson16

The sentence counter in textstat is not good and often returns incorrect values, which negatively affects the accuracy of the Flesch reading score, as implemented. We need to fix this in one of two ways:

  1. Use textblob sentence counter and textstat syllables counter to manually produce the Flesch scores. More code to change, but may be a safer fix. or
  2. Import the jnelson16/textstat fork of textstat, which fixes the sentence counter in textstat itself. This may be more difficult with pipenv, but less code to change.

add pnkt from nltk to required for sentence length

opened on 2020-02-20 22:21:06 by Stephen-Strosko None

add nltk stopwords to required

opened on 2020-02-20 19:38:48 by Stephen-Strosko None

Reorganization

opened on 2018-08-24 19:50:08 by OliverSherouse

Corpus.builtins => analysis.nlp Estimator prediction => analysis.ml

Releases

v0.6.4 2020-12-04 15:36:43

Allows for single class return from a multi-class algorithm. This release will NOT be published on pypi since 0.7.0 is coming soon.

v0.6.3 2020-08-12 15:57:41

Uses @jnelson16's version of textstat for Flesch scores, which uses textblob to measure sentence length.

Filters Flesch scores and average sentence lengths to be greater than -100 and less than 100 respectively (by default, filtering value can be changed with CLI argument --threshold).

v0.6.2 2019-09-18 17:18:12

This hotfix allows the user to pass arguments to the ml.estimate and corpus.get_streamer functions.

v0.6.1 2019-09-12 15:39:03

This hotfix catches a "division by zero" error on the sentence length analysis when no sentences are found.

v0.6.0 2019-09-10 17:43:07

This version introduces readability metrics, including Flesch Reading Ease.

v0.5.0 2018-09-28 18:25:25

This version significantly reorganizes and simplifies the library and framework:

  • NLP analysis is moved from corpus metadata to the new nlp commands
  • estimator functions have been moved to ml
  • Trained estimators are now packaged as a single, .qge file
  • Snakemake is now no longer a dependency; workflow management is left to the discretion of the user.

See the updated documentation for details.

quantgov-platform machine-learning research-tool economics public-policy