<commit_before>PyPlaintext
============

A HTML to plaintext converter.

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

To get the latest stable release from PyPi

.. code-block:: bash

    pip install pyplaintext

To get the latest commit from GitHub

.. code-block:: bash

    pip install -e git+git://github.com/bitmazk/pyplaintext.git#egg=pyplaintext


Usage
-----

.. code-block:: python

    from pyplaintext import converter
    html = '<html><body>Hello world!</body></html>'
    parser = converter.HTML2PlainParser()
    result = parser.html_to_plain_text(html)


Contribute<commit_msg>Added link to demo to README<commit_after>PyPlaintext
============

A HTML to plaintext converter.

You can find a hosted demo at `https://bitmazkdemo.webfactional.com/en/pyplaintext/ <https://bitmazkdemo.webfactional.com/en/pyplaintext/>`_

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

To get the latest stable release from PyPi

.. code-block:: bash

    pip install pyplaintext

To get the latest commit from GitHub

.. code-block:: bash

    pip install -e git+git://github.com/bitmazk/pyplaintext.git#egg=pyplaintext


Usage
-----

.. code-block:: python

    from pyplaintext import converter
    html = '<html><body>Hello world!</body></html>'
    parser = converter.HTML2PlainParser()
    result = parser.html_to_plain_text(html)


Contribute
{'fraction_non_alphanumeric': 0.13925019127773527, 'fraction_numerical': 0.001530221882172915, 'mean_word_length': 3.4489795918367347, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2694770', 'n_tokens_mistral': 426, 'n_tokens_neox': 401, 'n_words': 109}