cwordtm


Namecwordtm JSON
Version 0.5.7 PyPI version JSON
download
home_page
SummaryCWordTM - Low-Code Topic Modeling Toolkit
upload_time2024-03-18 12:43:29
maintainer
docs_urlNone
authorDr. Johnny CHENG
requires_python
license
keywords word scripture topic modeling visualization low-code pro-code bertopic lda nfm multi-levels abstraction meta-programming cwordtm
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            CWordTM Package (cwordtm 0.5.7)
===============================

A topic modeling toolkit on the Holy Scripture and other text
from low-code to pro-code

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

.. code:: shell

   $ pip install cwordtm

Usage
-----

``cwordtm`` can be used to perform some NLP pre-processing tasks, text
exploration, including Chinese one, text visualization (word cloud), and
topic modeling (BERTopic, LDA and NMF) as follows:

.. code:: python

   from cwordtm import meta, util, ta, tm, viz, pivot, quot

version Submodule
~~~~~~~~~~~~~~~~~

Provides some version information.

.. code:: python

   import cwordtm
   print(cwordtm.__version__)

meta Submodule
~~~~~~~~~~~~~~

Provides extracting source code of ``cwordtm`` module and adding timing and code-showing features
to all functions of the module.

.. code:: python

   print(meta.get_module_info())

   print(meta.get_module_info(detailed=True))


quot Submodule
~~~~~~~~~~~~~~

Provides functions to extract the quotation source Scripture in OT based on the presribed NT Scripture.

.. code:: python

   cdf = util.load_word('cuv.csv')
   crom8 = util.extract2(cdf, 'Rom 8')
   
   quot.show_quot(crom8, lang='chi')

pivot Submodule
~~~~~~~~~~~~~~~

Provides a pivot table of the prescribed text.

.. code:: python

   cdf = util.load_word('cuv.csv')

   pivot.stat(cdf, chi=True)

ta Submodule
~~~~~~~~~~~~

Provides text analytics functions, including extracting the summarization of the prescribed text.

.. code:: python

   cdf = util.load_word('cuv.csv')
   crom8 = util.extract2(cdf, 'Rom 8')

   ta.summary_chi(crom8)

tm Submodule
~~~~~~~~~~~~~

Provides text modeling functions, including LDA, NMF and BERTopics modeling.

.. code:: python

   lda = tm.lda_process("web.csv", eval=True, timing=True)

   nmf = tm.nmf_process("web.csv", eval=True, code=1)

   btm = tm.btm_process("cuv.csv", chi=True, cat='ot', eval=True)

   btm = tm.btm_process("cuv.csv", chi=True, cat='nt', eval=True, code=2)

util Submodule
~~~~~~~~~~~~~~

Provides loading text and text preprocessing functions.

.. code:: python

   df = util.load_word()
   cdf = util.load_word('cuv.csv')

   df.head()
   cdf.head()

   rom8 = util.extract2(df, 'Rom 8')
   crom8 = util.extract2(cdf, 'Rom 8')

viz Submodule
~~~~~~~~~~~~~

Wordcloud plotting from the prescribed text.

.. code:: python

   cdf = util.load_word('cuv.csv')

   viz.chi_wordcloud(cdf)

Contributing
------------

Interested in contributing? Check out the contributing guidelines.
Please note that this project is released with a Code of Conduct. By
contributing to this project, you agree to abide by its terms.

License
-------

``cwordtm`` was created by Johnny Cheng. It is licensed under the terms
of the MIT license.

Credits
-------

``cwordtm`` was created under the guidance of Jehovah, the Lord.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "cwordtm",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "Word,Scripture,topic modeling,visualization,low-code,pro-code,BERTopic,LDA,NFM,multi-levels,abstraction,meta-programming,CWordTM",
    "author": "Dr. Johnny CHENG",
    "author_email": "<drjohnnycheng@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/1e/f1/99139fbf9eb6fa9b98994e41b5fa9ebfa9524a5d63fd167e5dcc653aacd4/cwordtm-0.5.7.tar.gz",
    "platform": null,
    "description": "CWordTM Package (cwordtm 0.5.7)\r\n===============================\r\n\r\nA topic modeling toolkit on the Holy Scripture and other text\r\nfrom low-code to pro-code\r\n\r\nInstallation\r\n------------\r\n\r\n.. code:: shell\r\n\r\n   $ pip install cwordtm\r\n\r\nUsage\r\n-----\r\n\r\n``cwordtm`` can be used to perform some NLP pre-processing tasks, text\r\nexploration, including Chinese one, text visualization (word cloud), and\r\ntopic modeling (BERTopic, LDA and NMF) as follows:\r\n\r\n.. code:: python\r\n\r\n   from cwordtm import meta, util, ta, tm, viz, pivot, quot\r\n\r\nversion Submodule\r\n~~~~~~~~~~~~~~~~~\r\n\r\nProvides some version information.\r\n\r\n.. code:: python\r\n\r\n   import cwordtm\r\n   print(cwordtm.__version__)\r\n\r\nmeta Submodule\r\n~~~~~~~~~~~~~~\r\n\r\nProvides extracting source code of ``cwordtm`` module and adding timing and code-showing features\r\nto all functions of the module.\r\n\r\n.. code:: python\r\n\r\n   print(meta.get_module_info())\r\n\r\n   print(meta.get_module_info(detailed=True))\r\n\r\n\r\nquot Submodule\r\n~~~~~~~~~~~~~~\r\n\r\nProvides functions to extract the quotation source Scripture in OT based on the presribed NT Scripture.\r\n\r\n.. code:: python\r\n\r\n   cdf = util.load_word('cuv.csv')\r\n   crom8 = util.extract2(cdf, 'Rom 8')\r\n   \r\n   quot.show_quot(crom8, lang='chi')\r\n\r\npivot Submodule\r\n~~~~~~~~~~~~~~~\r\n\r\nProvides a pivot table of the prescribed text.\r\n\r\n.. code:: python\r\n\r\n   cdf = util.load_word('cuv.csv')\r\n\r\n   pivot.stat(cdf, chi=True)\r\n\r\nta Submodule\r\n~~~~~~~~~~~~\r\n\r\nProvides text analytics functions, including extracting the summarization of the prescribed text.\r\n\r\n.. code:: python\r\n\r\n   cdf = util.load_word('cuv.csv')\r\n   crom8 = util.extract2(cdf, 'Rom 8')\r\n\r\n   ta.summary_chi(crom8)\r\n\r\ntm Submodule\r\n~~~~~~~~~~~~~\r\n\r\nProvides text modeling functions, including LDA, NMF and BERTopics modeling.\r\n\r\n.. code:: python\r\n\r\n   lda = tm.lda_process(\"web.csv\", eval=True, timing=True)\r\n\r\n   nmf = tm.nmf_process(\"web.csv\", eval=True, code=1)\r\n\r\n   btm = tm.btm_process(\"cuv.csv\", chi=True, cat='ot', eval=True)\r\n\r\n   btm = tm.btm_process(\"cuv.csv\", chi=True, cat='nt', eval=True, code=2)\r\n\r\nutil Submodule\r\n~~~~~~~~~~~~~~\r\n\r\nProvides loading text and text preprocessing functions.\r\n\r\n.. code:: python\r\n\r\n   df = util.load_word()\r\n   cdf = util.load_word('cuv.csv')\r\n\r\n   df.head()\r\n   cdf.head()\r\n\r\n   rom8 = util.extract2(df, 'Rom 8')\r\n   crom8 = util.extract2(cdf, 'Rom 8')\r\n\r\nviz Submodule\r\n~~~~~~~~~~~~~\r\n\r\nWordcloud plotting from the prescribed text.\r\n\r\n.. code:: python\r\n\r\n   cdf = util.load_word('cuv.csv')\r\n\r\n   viz.chi_wordcloud(cdf)\r\n\r\nContributing\r\n------------\r\n\r\nInterested in contributing? Check out the contributing guidelines.\r\nPlease note that this project is released with a Code of Conduct. By\r\ncontributing to this project, you agree to abide by its terms.\r\n\r\nLicense\r\n-------\r\n\r\n``cwordtm`` was created by Johnny Cheng. It is licensed under the terms\r\nof the MIT license.\r\n\r\nCredits\r\n-------\r\n\r\n``cwordtm`` was created under the guidance of Jehovah, the Lord.\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "CWordTM - Low-Code Topic Modeling Toolkit",
    "version": "0.5.7",
    "project_urls": {
        "Documentation": "https://cwordtm.readthedocs.io",
        "GitHub Repository": "https://github.com/drjohnnycheng/cwordtm"
    },
    "split_keywords": [
        "word",
        "scripture",
        "topic modeling",
        "visualization",
        "low-code",
        "pro-code",
        "bertopic",
        "lda",
        "nfm",
        "multi-levels",
        "abstraction",
        "meta-programming",
        "cwordtm"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6ace0ed6188a6d1c92d317f2dc9784c26f1f0e837f880b5075aaae2de02fd76e",
                "md5": "881a47512d85278af4cea3b6d1582fb6",
                "sha256": "f927dd9823406c1c40d1d1819d7668a9613820b9187c9c780c61f95f361d560c"
            },
            "downloads": -1,
            "filename": "cwordtm-0.5.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "881a47512d85278af4cea3b6d1582fb6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 18247662,
            "upload_time": "2024-03-18T12:41:54",
            "upload_time_iso_8601": "2024-03-18T12:41:54.619655Z",
            "url": "https://files.pythonhosted.org/packages/6a/ce/0ed6188a6d1c92d317f2dc9784c26f1f0e837f880b5075aaae2de02fd76e/cwordtm-0.5.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1ef199139fbf9eb6fa9b98994e41b5fa9ebfa9524a5d63fd167e5dcc653aacd4",
                "md5": "6bfefff92527a1360b6b1add267f5a74",
                "sha256": "9b12181a0e56f6c36c92470bb78dc89458af97f7375e3dd8c3e72524ee449ba6"
            },
            "downloads": -1,
            "filename": "cwordtm-0.5.7.tar.gz",
            "has_sig": false,
            "md5_digest": "6bfefff92527a1360b6b1add267f5a74",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 18192889,
            "upload_time": "2024-03-18T12:43:29",
            "upload_time_iso_8601": "2024-03-18T12:43:29.190814Z",
            "url": "https://files.pythonhosted.org/packages/1e/f1/99139fbf9eb6fa9b98994e41b5fa9ebfa9524a5d63fd167e5dcc653aacd4/cwordtm-0.5.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-18 12:43:29",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "drjohnnycheng",
    "github_project": "cwordtm",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "cwordtm"
}
        
Elapsed time: 0.30902s