mathtext


Namemathtext JSON
Version 2.0.5 PyPI version JSON
download
home_pagehttps://gitlab.com/tangibleai/community/mathtext
SummaryNatural Language Understanding (text processing) for math symbols, digits, and words with a Gradio user interface and REST API.
upload_time2023-12-11 12:28:17
maintainer
docs_urlNone
authorGreg Thompson
requires_python>=3.9
licenseAGPL-3.0-or-later
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ---
title: MathText
app_file: app.py
sdk: gradio
sdk_version: 3.15.0
license: agpl-3.0
---

## MathText NLU

Natural Language Understanding for math symbols, digits, and words with a Gradio user interface and REST API.

## Setup your Python environment

Launch a `terminal` on linux (or the `git-bash` application on Windows).
Then create a virtualenv with whatever python version you have available on your system.

Any python version greater than `3.7` should work.
Most of us on Linux systems use Python `3.9`: 

```bash
git clone git@gitlab.com:tangibleai/community/mathtext
cd mathtext
pip install --upgrade virtualenv poetry
python -m virtualenv .venv
ls -hal
```

You should see a new `.venv/` directory.
It will contain your python interpreter and a few `site-packages` like `pip` and `distutils`.

Now activate your new virtual environment by sourcing `.venv/bin/activate` (on Linux) or `.venv/scripts/activate` (on Windows).

```bash
source .venv/bin/activate || source .venv/scripts/activate
```

## Developer installation

Once you have a shiny new virtual environment activated you can install the `mathtext` in `--editable` mode.
This way, when you edit the files and have the package change immediately.

Make sure you are already within your cloned `mathtext` project directory.
And makes sure your virtual environment is activated.
You should see the name of your virtual environment in parentheses within your command line prompt, like `(.venv) $`.
Then when you install MathText it will be available to any other application within that environment.

```bash
pip install --editable .
```

## User installation

If you don't want to contribute to the MathText source code and you just want to import and run the MathText modules, you can install it from a binary wheel on PyPi.

```bash
pip install mathtext
```

## Usage

### Sentiment classification




### Directory structure with notes
```text
mathtext
    mathtext: mathtext code
        data: training and test sets for various tasks
        models: scripts to create models and store in/retrieve from object storage
        utils: utility functions
            checkers.py: T/F evaluations
            converters.py: Change the data type from one to another
            extractors.py: Looks for specific values or value types in a message
            formatters.py: Attempts to format text in a standardized way
        api_gradio.py: gradio api
        predict_intent.py: functions to run multilabel recognizer on message
        text_processing.py: evaluations that use sequences of utils
    scripts: setup scripts
        api_scaling.sh: makes calls to local api
        api_scaling.py: makes async http requests to the local api
        build.sh
        plot_calls.py: Functions for plotting data
        pyproject.template
    tests: various tests
        __init.py
        test_cases_all.py
    .git*: various git files
    app.py: ties all of the api components together for huggingface
    LICENSE.md: license
    pyproject.toml: pyproject file
    README.md: this
    requirements.txt: project dependencies
```            

            

Raw data

            {
    "_id": null,
    "home_page": "https://gitlab.com/tangibleai/community/mathtext",
    "name": "mathtext",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "",
    "author": "Greg Thompson",
    "author_email": "greg@tangibleai.com",
    "download_url": "https://files.pythonhosted.org/packages/cd/87/929b55fa8d600029b7da56f96257e58cfeb838a37a9fb47c1670b34d081e/mathtext-2.0.5.tar.gz",
    "platform": null,
    "description": "---\ntitle: MathText\napp_file: app.py\nsdk: gradio\nsdk_version: 3.15.0\nlicense: agpl-3.0\n---\n\n## MathText NLU\n\nNatural Language Understanding for math symbols, digits, and words with a Gradio user interface and REST API.\n\n## Setup your Python environment\n\nLaunch a `terminal` on linux (or the `git-bash` application on Windows).\nThen create a virtualenv with whatever python version you have available on your system.\n\nAny python version greater than `3.7` should work.\nMost of us on Linux systems use Python `3.9`: \n\n```bash\ngit clone git@gitlab.com:tangibleai/community/mathtext\ncd mathtext\npip install --upgrade virtualenv poetry\npython -m virtualenv .venv\nls -hal\n```\n\nYou should see a new `.venv/` directory.\nIt will contain your python interpreter and a few `site-packages` like `pip` and `distutils`.\n\nNow activate your new virtual environment by sourcing `.venv/bin/activate` (on Linux) or `.venv/scripts/activate` (on Windows).\n\n```bash\nsource .venv/bin/activate || source .venv/scripts/activate\n```\n\n## Developer installation\n\nOnce you have a shiny new virtual environment activated you can install the `mathtext` in `--editable` mode.\nThis way, when you edit the files and have the package change immediately.\n\nMake sure you are already within your cloned `mathtext` project directory.\nAnd makes sure your virtual environment is activated.\nYou should see the name of your virtual environment in parentheses within your command line prompt, like `(.venv) $`.\nThen when you install MathText it will be available to any other application within that environment.\n\n```bash\npip install --editable .\n```\n\n## User installation\n\nIf you don't want to contribute to the MathText source code and you just want to import and run the MathText modules, you can install it from a binary wheel on PyPi.\n\n```bash\npip install mathtext\n```\n\n## Usage\n\n### Sentiment classification\n\n\n\n\n### Directory structure with notes\n```text\nmathtext\n    mathtext: mathtext code\n        data: training and test sets for various tasks\n        models: scripts to create models and store in/retrieve from object storage\n        utils: utility functions\n            checkers.py: T/F evaluations\n            converters.py: Change the data type from one to another\n            extractors.py: Looks for specific values or value types in a message\n            formatters.py: Attempts to format text in a standardized way\n        api_gradio.py: gradio api\n        predict_intent.py: functions to run multilabel recognizer on message\n        text_processing.py: evaluations that use sequences of utils\n    scripts: setup scripts\n        api_scaling.sh: makes calls to local api\n        api_scaling.py: makes async http requests to the local api\n        build.sh\n        plot_calls.py: Functions for plotting data\n        pyproject.template\n    tests: various tests\n        __init.py\n        test_cases_all.py\n    .git*: various git files\n    app.py: ties all of the api components together for huggingface\n    LICENSE.md: license\n    pyproject.toml: pyproject file\n    README.md: this\n    requirements.txt: project dependencies\n```            \n",
    "bugtrack_url": null,
    "license": "AGPL-3.0-or-later",
    "summary": "Natural Language Understanding (text processing) for math symbols, digits, and words with a Gradio user interface and REST API.",
    "version": "2.0.5",
    "project_urls": {
        "Homepage": "https://gitlab.com/tangibleai/community/mathtext",
        "Repository": "https://gitlab.com/tangibleai/community/mathtext"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0fb4933b6c79acfbb9f8e4f6741ecbd6fb5cbd1232ee877fb49dd2d534009b51",
                "md5": "5126f8247cf4f706e7644a2c9df9065a",
                "sha256": "ca87217ac6d95e265a37d91258391c46c6a0476d2b257ef9d43261f2344142a8"
            },
            "downloads": -1,
            "filename": "mathtext-2.0.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5126f8247cf4f706e7644a2c9df9065a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 12038018,
            "upload_time": "2023-12-11T12:28:05",
            "upload_time_iso_8601": "2023-12-11T12:28:05.003300Z",
            "url": "https://files.pythonhosted.org/packages/0f/b4/933b6c79acfbb9f8e4f6741ecbd6fb5cbd1232ee877fb49dd2d534009b51/mathtext-2.0.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cd87929b55fa8d600029b7da56f96257e58cfeb838a37a9fb47c1670b34d081e",
                "md5": "a6562a0eeabc230560ab2bb4e3528672",
                "sha256": "d2ff3bd9dbb2abd1ab83c318bdefee934704a7786c2d2571e310b569263eb96c"
            },
            "downloads": -1,
            "filename": "mathtext-2.0.5.tar.gz",
            "has_sig": false,
            "md5_digest": "a6562a0eeabc230560ab2bb4e3528672",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 11988365,
            "upload_time": "2023-12-11T12:28:17",
            "upload_time_iso_8601": "2023-12-11T12:28:17.437496Z",
            "url": "https://files.pythonhosted.org/packages/cd/87/929b55fa8d600029b7da56f96257e58cfeb838a37a9fb47c1670b34d081e/mathtext-2.0.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-11 12:28:17",
    "github": false,
    "gitlab": true,
    "bitbucket": false,
    "codeberg": false,
    "gitlab_user": "tangibleai",
    "gitlab_project": "community",
    "lcname": "mathtext"
}
        
Elapsed time: 0.22853s