notnews

classifiers for soft news based on the story text and the url structure for both the US and UK news media.

https://github.com/notnews/notnews

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.4%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

classifiers for soft news based on the story text and the url structure for both the US and UK news media.

Basic Info
Statistics
  • Stars: 7
  • Watchers: 2
  • Forks: 2
  • Open Issues: 0
  • Releases: 1
Created almost 6 years ago · Last pushed over 1 year ago
Metadata Files
Readme License Citation

README.rst

notnews: predict soft news using story text and the url structure
=================================================================

.. image:: https://github.com/notnews/notnews/workflows/test/badge.svg
    :target: https://github.com/notnews/notnews/actions?query=workflow%3Atest
.. image:: https://img.shields.io/pypi/v/notnews.svg
    :target: https://pypi.python.org/pypi/notnews
.. image:: https://readthedocs.org/projects/notnews/badge/?version=latest
    :target: http://notnews.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation Status
.. image:: https://static.pepy.tech/badge/notnews
    :target: https://pepy.tech/project/notnews

The package provides classifiers for soft news based on the story text and the url structure for both the US and UK news media. We provide also provide a way to infer the 'kind' of news---Arts, Books, Science, Sports, Travel, etc.---for the US news media.

Streamlit App: https://notnews-notnews-streamlitstreamlit-app-u8j3a6.streamlit.app/

Quick Start
-----------

::

    >>> import pandas as pd
    >>> from notnews import *

    >>> # Get help
    >>> help(soft_news_url_cat_us)

    Help on method soft_news_url_cat in module notnews.soft_news_url_cat:

    soft_news_url_cat(df, col='url') method of builtins.type instance
        Soft News Categorize by URL pattern.

        Using the URL pattern to categorize the soft/hard news of the input
        DataFrame.

        Args:
            df (:obj:`DataFrame`): Pandas DataFrame containing the URL
                column.
            col (str or int): Column's name or location of the URL in
                DataFrame (default: url).

        Returns:
            DataFrame: Pandas DataFrame with additional columns:
                - `soft_lab` set to 1 if URL match with soft news URL pattern.
                - `hard_lab` set to 1 if URL match with hard news URL pattern.

    >>> # Load data
    >>> df = pd.read_csv('./notnews/tests/sample_us.csv')
    >>> df
                src                                                url                                               text
    0             nyt  http://www.nytimes.com/2017/02/11/us/politics/...  Mr. Kushner on something of a crash course in ...
    1  huffingtonpost  http://grvrdr.huffingtonpost.com/302/redirect?...  Authorities are still searching for a man susp...
    2             nyt  http://www.nytimes.com/2016/09/19/us/politics/...  Photo  WASHINGTON  In releasing a far more so...
    3          google  http://www.foxnews.com/world/2016/07/17/turkey...  The Turkish government on Sunday ratcheted up ...
    4             nyt  http://www.nytimes.com/interactive/2016/08/29/...  NYTimes.com no longer supports Internet Explor...
    5           yahoo  https://www.yahoo.com/news/pittsburgh-symphony...  PITTSBURGH AP  Pittsburgh Symphony Orchestra ...
    6         foxnews  http://www.foxnews.com/politics/2016/08/13/cli...  Hillary Clintons campaign is questioning a rep...
    7         foxnews  http://www.foxnews.com/us/2017/04/15/april-gir...  April the giraffe has given birth at a New Yor...
    8         foxnews  http://www.foxnews.com/politics/2017/05/03/hil...  Want FOX News Halftime Report in your inbox ev...
    9             nyt  http://www.nytimes.com/2016/09/06/obituaries/p...  Shes an extremely liberated woman Ms. DeCrow s...
    >>>
    >>> # Get the Soft News URL category
    >>> df_soft_news_url_cat_us  = soft_news_url_cat_us(df, col='url')
    >>> df_soft_news_url_cat_us
                src                                                url                                               text  soft_lab  hard_lab
    0             nyt  http://www.nytimes.com/2017/02/11/us/politics/...  Mr. Kushner on something of a crash course in ...       NaN       1.0
    1  huffingtonpost  http://grvrdr.huffingtonpost.com/302/redirect?...  Authorities are still searching for a man susp...       NaN       NaN
    2             nyt  http://www.nytimes.com/2016/09/19/us/politics/...  Photo  WASHINGTON  In releasing a far more so...       NaN       1.0
    3          google  http://www.foxnews.com/world/2016/07/17/turkey...  The Turkish government on Sunday ratcheted up ...       NaN       1.0
    4             nyt  http://www.nytimes.com/interactive/2016/08/29/...  NYTimes.com no longer supports Internet Explor...       NaN       1.0
    5           yahoo  https://www.yahoo.com/news/pittsburgh-symphony...  PITTSBURGH AP  Pittsburgh Symphony Orchestra ...       1.0       NaN
    6         foxnews  http://www.foxnews.com/politics/2016/08/13/cli...  Hillary Clintons campaign is questioning a rep...       NaN       1.0
    7         foxnews  http://www.foxnews.com/us/2017/04/15/april-gir...  April the giraffe has given birth at a New Yor...       NaN       NaN
    8         foxnews  http://www.foxnews.com/politics/2017/05/03/hil...  Want FOX News Halftime Report in your inbox ev...       NaN       1.0
    9             nyt  http://www.nytimes.com/2016/09/06/obituaries/p...  Shes an extremely liberated woman Ms. DeCrow s...       NaN       NaN
    >>>


Installation
------------

Installation is as easy as typing in:

::

    pip install notnews

API
---

1. **soft_news_url_cat_us** Uses URL patterns in prominent outlets to classify the type of news. It is based on a slightly amended version of the regular expression used to classify news, and non-news in `Exposure to ideologically diverse news and opinion on Facebook `__ by Bakshy, Messing, and Adamic in Science in 2015. Our only amendment: sport rather than sports. The classifier success is liable to vary over time and across outlets.

-  **Arguments:**

      -  ``df``:
      -  ``url``: column with the domain names/URLs.
         Default is ``url``

-  **What it does:**

      - converts url to lower case
      - regex

      ::

          URL containing any of the following words is classified as soft news:
          sport|entertainment|arts|fashion|style|lifestyle|leisure|celeb|movie|music|gossip|food|travel|horoscope|weather|gadget

          URL conta ining any of following words is classified as hard news:
          politi|usnews|world|national|state|elect|vote|govern|campaign|war|polic|econ|unemploy|racis|energy|abortion|educa|healthcare|immigration

-  **Output:**

      -  Given both the regex can return true, the potential set is: soft, hard, soft and hard, or empty string.
      -  By default it creates two columns, ```hard_lab``` and ```soft_lab```

-  **Examples:**

      ::

        >>> import pandas as pd
        >>> from notnews import soft_news_url_cat_us
        >>>
        >>> df = pd.DataFrame([{'url': 'http://nytimes.com/sports/'}])
        >>> df
                                url
        0  http://nytimes.com/sports/
        >>>
        >>> soft_news_url_cat_us(df)
                                url  soft_lab hard_lab
        0  http://nytimes.com/sports/         1     None


2. **pred_soft_news_us**: We use data from NY Times to train a `model `__. The function
   uses the trained model to predict soft news.

-  **Arguments:**

      -  ``df``: pandas dataframe. No default.
      -  ``text``: column with the story text.

-  **Functionality:**

      -  Normalizes the text and gets the bi-grams and tri-grams
      -  Outputs calibrated probability of soft news using the trained model

-  **Output**

      -  Appends a column with probability of soft news (``prob_soft_news_us``)

-  **Examples:**

      ::

        >>> import pandas as pd
        >>> from notnews import pred_soft_news_us
        >>>
        >>> df = pd.read_csv('notnews/tests/sample_us.csv')
        >>> df
                    src                                                url                                               text
        0             nyt  http://www.nytimes.com/2017/02/11/us/politics/...  Mr. Kushner on something of a crash course in ...
        1  huffingtonpost  http://grvrdr.huffingtonpost.com/302/redirect?...  Authorities are still searching for a man susp...
        2             nyt  http://www.nytimes.com/2016/09/19/us/politics/...  Photo  WASHINGTON  In releasing a far more so...
        3          google  http://www.foxnews.com/world/2016/07/17/turkey...  The Turkish government on Sunday ratcheted up ...
        4             nyt  http://www.nytimes.com/interactive/2016/08/29/...  NYTimes.com no longer supports Internet Explor...
        5           yahoo  https://www.yahoo.com/news/pittsburgh-symphony...  PITTSBURGH AP  Pittsburgh Symphony Orchestra ...
        6         foxnews  http://www.foxnews.com/politics/2016/08/13/cli...  Hillary Clintons campaign is questioning a rep...
        7         foxnews  http://www.foxnews.com/us/2017/04/15/april-gir...  April the giraffe has given birth at a New Yor...
        8         foxnews  http://www.foxnews.com/politics/2017/05/03/hil...  Want FOX News Halftime Report in your inbox ev...
        9             nyt  http://www.nytimes.com/2016/09/06/obituaries/p...  Shes an extremely liberated woman Ms. DeCrow s...
        >>>
        >>> pred_soft_news_us(df)
        Using model data from /opt/notebooks/not_news/notnews_pub/notnews/data/us_model/nyt_us_soft_news_classifier.joblib...
        Using vectorizer data from /opt/notebooks/not_news/notnews_pub/notnews/data/us_model/nyt_us_soft_news_vectorizer.joblib...
        Loading the model and vectorizer data file...
                    src                                                url                                               text  prob_soft_news_us
        0             nyt  http://www.nytimes.com/2017/02/11/us/politics/...  Mr. Kushner on something of a crash course in ...           0.175099
        1  huffingtonpost  http://grvrdr.huffingtonpost.com/302/redirect?...  Authorities are still searching for a man susp...           0.044617
        2             nyt  http://www.nytimes.com/2016/09/19/us/politics/...  Photo  WASHINGTON  In releasing a far more so...           0.010398
        3          google  http://www.foxnews.com/world/2016/07/17/turkey...  The Turkish government on Sunday ratcheted up ...           0.011246
        4             nyt  http://www.nytimes.com/interactive/2016/08/29/...  NYTimes.com no longer supports Internet Explor...           0.021861
        5           yahoo  https://www.yahoo.com/news/pittsburgh-symphony...  PITTSBURGH AP  Pittsburgh Symphony Orchestra ...           0.372437
        6         foxnews  http://www.foxnews.com/politics/2016/08/13/cli...  Hillary Clintons campaign is questioning a rep...           0.077207
        7         foxnews  http://www.foxnews.com/us/2017/04/15/april-gir...  April the giraffe has given birth at a New Yor...           0.481287
        8         foxnews  http://www.foxnews.com/politics/2017/05/03/hil...  Want FOX News Halftime Report in your inbox ev...           0.004383
        9             nyt  http://www.nytimes.com/2016/09/06/obituaries/p...  Shes an extremely liberated woman Ms. DeCrow s...           0.694037
        >>>


3. **pred_what_news_us**: We use a `model `__ trained on the
    `annotated NY Times corpus `__ to predict the
     type of news---Arts, Books, Business Finance, Classifieds, Dining, Editorial, Foreign News, Health, Leisure,
     Local, National, Obits, Other, Real Estate, Science, Sports, Style, and Travel.

-  **Arguments:**

      -  ``df``: pandas dataframe. No default.
      -  ``text``: column with the story text.

-  **Functionality:**

      -  Normalizes the text and gets the bi-grams and tri-grams
      -  Outputs calibrated probability of the type of news using the trained model

-  **Output**

      -  Appends a column of predicted catetory (``pred_what_news_us``) and the columns for probability of each category.
         (``prob_*``)

-  **Examples:**

      ::

        >>> import pandas as pd
        >>> from notnews import pred_what_news_us
        >>>
        >>> df = pd.read_csv('notnews/tests/sample_us.csv')
        >>> df
                    src                                                url                                               text
        0             nyt  http://www.nytimes.com/2017/02/11/us/politics/...  Mr. Kushner on something of a crash course in ...
        1  huffingtonpost  http://grvrdr.huffingtonpost.com/302/redirect?...  Authorities are still searching for a man susp...
        2             nyt  http://www.nytimes.com/2016/09/19/us/politics/...  Photo  WASHINGTON  In releasing a far more so...
        3          google  http://www.foxnews.com/world/2016/07/17/turkey...  The Turkish government on Sunday ratcheted up ...
        4             nyt  http://www.nytimes.com/interactive/2016/08/29/...  NYTimes.com no longer supports Internet Explor...
        5           yahoo  https://www.yahoo.com/news/pittsburgh-symphony...  PITTSBURGH AP  Pittsburgh Symphony Orchestra ...
        6         foxnews  http://www.foxnews.com/politics/2016/08/13/cli...  Hillary Clintons campaign is questioning a rep...
        7         foxnews  http://www.foxnews.com/us/2017/04/15/april-gir...  April the giraffe has given birth at a New Yor...
        8         foxnews  http://www.foxnews.com/politics/2017/05/03/hil...  Want FOX News Halftime Report in your inbox ev...
        9             nyt  http://www.nytimes.com/2016/09/06/obituaries/p...  Shes an extremely liberated woman Ms. DeCrow s...
        >>>
        >>> pred_what_news_us(df)

        Using model data from /opt/notebooks/not_news/notnews_pub/notnews/data/us_model/nyt_us_classifier.joblib...
        Using vectorizer data from /opt/notebooks/not_news/notnews_pub/notnews/data/us_model/nyt_us_vectorizer.joblib...
        Loading the model and vectorizer data file...
                    src                                                url                                               text  ... prob_sports  prob_style  prob_travel
        0             nyt  http://www.nytimes.com/2017/02/11/us/politics/...  Mr. Kushner on something of a crash course in ...  ...    0.000000    0.037708     0.000000
        1  huffingtonpost  http://grvrdr.huffingtonpost.com/302/redirect?...  Authorities are still searching for a man susp...  ...    0.000505    0.000243     0.000416
        2             nyt  http://www.nytimes.com/2016/09/19/us/politics/...  Photo  WASHINGTON  In releasing a far more so...  ...    0.000000    0.051815     0.000000
        3          google  http://www.foxnews.com/world/2016/07/17/turkey...  The Turkish government on Sunday ratcheted up ...  ...    0.001302    0.001378     0.000040
        4             nyt  http://www.nytimes.com/interactive/2016/08/29/...  NYTimes.com no longer supports Internet Explor...  ...    0.003500    0.010600     0.000973
        5           yahoo  https://www.yahoo.com/news/pittsburgh-symphony...  PITTSBURGH AP  Pittsburgh Symphony Orchestra ...  ...    0.161347    0.009316     0.000476
        6         foxnews  http://www.foxnews.com/politics/2016/08/13/cli...  Hillary Clintons campaign is questioning a rep...  ...    0.006366    0.003844     0.005973
        7         foxnews  http://www.foxnews.com/us/2017/04/15/april-gir...  April the giraffe has given birth at a New Yor...  ...    0.000808    0.047357     0.015018
        8         foxnews  http://www.foxnews.com/politics/2017/05/03/hil...  Want FOX News Halftime Report in your inbox ev...  ...    0.000626    0.000459     0.000000
        9             nyt  http://www.nytimes.com/2016/09/06/obituaries/p...  Shes an extremely liberated woman Ms. DeCrow s...  ...    0.000000    0.019162     0.000000

        [10 rows x 22 columns]
        >>>


4. **soft_news_url_cat_uk** Uses URL patterns in prominent outlets to classify the type of news. It is based on a slightly amended version of the regular expression used to classify news, and non-news in Exposure to ideologically diverse news and opinion on Facebook by Bakshy, Messing, and Adamic. Science. 2015. Amendment: sport rather than sports. The classifier success is liable to vary over time and across outlets.

-  **Arguments:**

      -  ``df``: pandas dataframe. No default.
      -  ``url``: column with the domain names/URLs.
         Default is ``url``

-  **What it does:**

      - converts url to lower case
      - regex

    ::

        URL containing any of the following words is classified as soft news:
        sport|entertainment|arts|fashion|style|lifestyle|leisure|celeb|movie|music|gossip|food|travel|horoscope|weather|gadget

        URL containing any of following words is classified as hard news:
        politi|usnews|world|national|state|elect|vote|govern|campaign|war|polic|econ|unemploy|racis|energy|abortion|educa|healthcare|immigration

-  **Output:**

    -  Given both the regex can return true, the potential set is: soft, hard, soft and hard, or empty string.
    -  By default it creates two columns, ```hard_lab``` and ```soft_lab```

-  **Examples:**

    ::

        >>> import pandas as pd
        >>> from notnews import soft_news_url_cat_uk
        >>>
        >>> df = pd.DataFrame([{'url': 'https://www.theguardian.com/us/sport'}])
        >>> df
                                            url
        0  https://www.theguardian.com/us/sport
        >>>
        >>> soft_news_url_cat_uk(df)
                                            url  soft_lab hard_lab
        0  https://www.theguardian.com/us/sport         1     None
        >>>


5. **pred_soft_news_uk**: We use the `model `__
       to predict soft news for UK news media.

-  **Arguments:**

    -  ``df``: pandas dataframe. No default.
    -  ``text``: column with the story text.

-  **Functionality:**

      -  Normalizes the text and gets the bi-grams and tri-grams
      -  Outputs calibrated probability of soft news using the trained model

-  **Output**

      -  Appends a column with probability of soft news (``prob_soft_news_uk``)

-  **Examples:**

    ::
        >>> import pandas as pd
        >>> from notnews import pred_soft_news_uk
        >>>
        >>> df = pd.read_csv('notnews/tests/sample_uk.csv')
        >>> df
                            src_name                                                url                                               text
        0           your local guardian  http://www.yourlocalguardian.co.uk/news/local/...  friday octob comment say speed bump dug counci...
        1          liverpool daily post  http://icliverpool.icnetwork.co.uk/0100news/03...  man shot dead takeaway four mask gunmen victim...
        2           the daily telegraph  http://telegraph.feedsportal.com/c/32726/f/534...  euromillion jackpot reach imag euromillion tic...
        3                liverpool echo  http://icliverpool.icnetwork.co.uk/0100news/03...  father one three men kill last summer riot sai...
        4           the daily telegraph  http://telegraph.feedsportal.com/c/32726/f/579...  duchess cambridg rush duchess cambridg yet nam...
        5              buckingham today  http://www.buckinghamtoday.co.uk/latest-scotti...  man accus murder nineyearold girl innoc court ...
        6        northumberland gazette  http://www.northumberlandgazette.co.uk/latest-...  singersongwrit ami winehous appeal fine mariju...
        7                  daily record  http://www.dailyrecord.co.uk/entertainment/ent...  apr beverley lyon laura sutherland former crea...
        8  international business times  http://www.ibtimes.com/articles/331256/2012042...  deep valu found small medtech jason mill sourc...
        9                the daily mail  http://www.dailymail.co.uk/news/article-252383...  ca nt afford third child foot bill key down st...
        >>>
        >>> pred_soft_news_uk(df)
        Using model data from /opt/notebooks/not_news/notnews/notnews/data/uk_model/url_uk_classifier.joblib...
        Using vectorizer data from /opt/notebooks/not_news/notnews/notnews/data/uk_model/url_uk_vectorizer.joblib...
        Loading the model and vectorizer data file...
                            src_name                                                url                                               text  prob_soft_news_uk
        0           your local guardian  http://www.yourlocalguardian.co.uk/news/local/...  friday octob comment say speed bump dug counci...           0.152979
        1          liverpool daily post  http://icliverpool.icnetwork.co.uk/0100news/03...  man shot dead takeaway four mask gunmen victim...           0.038663
        2           the daily telegraph  http://telegraph.feedsportal.com/c/32726/f/534...  euromillion jackpot reach imag euromillion tic...           0.944237
        3                liverpool echo  http://icliverpool.icnetwork.co.uk/0100news/03...  father one three men kill last summer riot sai...           0.119689
        4           the daily telegraph  http://telegraph.feedsportal.com/c/32726/f/579...  duchess cambridg rush duchess cambridg yet nam...           0.903285
        5              buckingham today  http://www.buckinghamtoday.co.uk/latest-scotti...  man accus murder nineyearold girl innoc court ...           0.049645
        6        northumberland gazette  http://www.northumberlandgazette.co.uk/latest-...  singersongwrit ami winehous appeal fine mariju...           0.070025
        7                  daily record  http://www.dailyrecord.co.uk/entertainment/ent...  apr beverley lyon laura sutherland former crea...           0.926814
        8  international business times  http://www.ibtimes.com/articles/331256/2012042...  deep valu found small medtech jason mill sourc...           0.491505
        9                the daily mail  http://www.dailymail.co.uk/news/article-252383...  ca nt afford third child foot bill key down st...           0.004905
        >>>


Command Line
------------

We also implement the scripts to process the input file in the CSV format:

1. **soft_news_url_cat_us**

    ::

        usage: soft_news_url_cat_us [-h] [-o OUTPUT] [-u URL] input

        US Soft News Category by URL pattern

        positional arguments:
        input                 Input file

        optional arguments:
        -h, --help            show this help message and exit
        -o OUTPUT, --output OUTPUT
                                Output file with category data
        -u URL, --url URL     Name or index location of column contains the domain
                                or URL (default: url)

2. **pred_soft_news_us**

    ::

        usage: pred_soft_news_us [-h] [-o OUTPUT] [-t TEXT] input

        Predict Soft News by text using NYT Soft News model

        positional arguments:
        input                 Input file

        optional arguments:
        -h, --help            show this help message and exit
        -o OUTPUT, --output OUTPUT
                                Output file with prediction data
        -t TEXT, --text TEXT  Name or index location of column contains the text
                                (default: text)

3. **pred_what_news_us**

    ::

        usage: pred_what_news_us [-h] [-o OUTPUT] [-t TEXT] input

        Predict What News by text using NYT What News model

        positional arguments:
        input                 Input file

        optional arguments:
        -h, --help            show this help message and exit
        -o OUTPUT, --output OUTPUT
                                Output file with prediction data
        -t TEXT, --text TEXT  Name or index location of column contains the text
                                (default: text)

4. **soft_news_url_cat_uk**

    ::

        usage: soft_news_url_cat_uk [-h] [-o OUTPUT] [-u URL] input

        UK Soft News Category by URL pattern

        positional arguments:
        input                 Input file

        optional arguments:
        -h, --help            show this help message and exit
        -o OUTPUT, --output OUTPUT
                                Output file with category data
        -u URL, --url URL     Name or index location of column contains the domain
                                or URL (default: url)


5. **pred_soft_news_uk**

    ::

        usage: pred_soft_news_uk [-h] [-o OUTPUT] [-t TEXT] input

        Predict Soft News by text using UK URL Soft News model

        positional arguments:
        input                 Input file

        optional arguments:
        -h, --help            show this help message and exit
        -o OUTPUT, --output OUTPUT
                                Output file with prediction data
        -t TEXT, --text TEXT  Name or index location of column contains the text
                                (default: text)

Underlying Data
---------------

* For more information about how to get the underlying data for UK model, see `here `__. For information about the data underlying the US model, see `here `__

Applications
------------

We use the model to estimate the supply of not news in the `US `__ and the `UK `__.

Documentation
-------------

For more information, please see `project documentation `__.

Authors
-------

Suriyan Laohaprapanon and Gaurav Sood

Contributor Code of Conduct
---------------------------

The project welcomes contributions from everyone! In fact, it depends on
it. To maintain this welcoming atmosphere, and to collaborate in a fun
and productive way, we expect contributors to the project to abide by
the `Contributor Code of
Conduct `__

License
-------

The package is released under the `MIT
License `__.

Owner

  • Name: Not News
  • Login: notnews
  • Kind: organization

News about news

GitHub Events

Total
  • Delete event: 2
  • Issue comment event: 1
  • Push event: 2
  • Pull request event: 3
  • Create event: 1
Last Year
  • Delete event: 2
  • Issue comment event: 1
  • Push event: 2
  • Pull request event: 3
  • Create event: 1

Committers

Last synced: over 3 years ago

All Time
  • Total Commits: 33
  • Total Committers: 3
  • Avg Commits per committer: 11.0
  • Development Distribution Score (DDS): 0.394
Top Committers
Name Email Commits
***** g****7@g****m 20
Suriyan Laohaprapanon s****t@g****m 10
Snyk bot s****t@s****o 3
Committer Domains (Top 20 + Academic)
snyk.io: 1

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 0
  • Total pull requests: 13
  • Average time to close issues: N/A
  • Average time to close pull requests: 20 days
  • Total issue authors: 0
  • Total pull request authors: 3
  • Average comments per issue: 0
  • Average comments per pull request: 0.08
  • Merged pull requests: 10
  • Bot issues: 0
  • Bot pull requests: 5
Past Year
  • Issues: 0
  • Pull requests: 2
  • Average time to close issues: N/A
  • Average time to close pull requests: 24 days
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.5
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 2
Top Authors
Issue Authors
Pull Request Authors
  • dependabot[bot] (6)
  • soodoku (4)
  • snyk-bot (4)
Top Labels
Issue Labels
Pull Request Labels
dependencies (6)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 188 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 1
  • Total versions: 3
  • Total maintainers: 2
pypi.org: notnews

Predict Soft News

  • Versions: 3
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 188 Last month
Rankings
Dependent packages count: 10.1%
Forks count: 19.2%
Stargazers count: 19.4%
Dependent repos count: 21.6%
Average: 23.0%
Downloads: 44.9%
Maintainers (2)
Last synced: 12 months ago

Dependencies

requirements.txt pypi
  • joblib *
  • nltk *
  • pandas *
  • scikit-learn ==0.22.2.post1
  • sphinx_rtd_theme *
  • tqdm *
requirements_rtd.txt pypi
  • joblib *
  • nltk *
  • pandas *
  • scikit-learn ==0.22.2.post1
  • sphinx_rtd_theme *
  • tqdm *
setup.py pypi
  • joblib *
  • nltk *
  • pandas *
  • scikit-learn ==0.22.2.post1
  • tqdm *
.github/workflows/python-publish.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v2 composite
  • pypa/gh-action-pypi-publish 27b31702a0e7fc50959f5ad993c78deac1bdfc29 composite
.github/workflows/test.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v2 composite
  • actions/setup-python v1 composite
streamlit/requirements.txt pypi
  • Cython >=0.28.5
  • joblib *
  • nltk *
  • notnews *
  • numpy ==1.22.0
  • pandas >=1.3.0
  • scikit-learn ==1.5.0
  • setuptools >=65.5.1
  • sphinx ==6.1.3
  • sphinx-rtd-theme ==1.2.0
  • streamlit *
  • tqdm *