https://github.com/pri22296/nlcalc
Natural Language Mathematical Calculator
https://github.com/pri22296/nlcalc
Last synced: about 2 months ago
JSON representation
Natural Language Mathematical Calculator
- Host: GitHub
- URL: https://github.com/pri22296/nlcalc
- Owner: pri22296
- License: mit
- Created: 2017-03-27T17:01:18.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-17T11:56:49.000Z (almost 8 years ago)
- Last Synced: 2025-03-24T03:48:34.314Z (2 months ago)
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
######################################################################################
Natural Language Mathematical Calculator
######################################################################################.. inclusion-marker-badges-start
.. image:: https://badge.fury.io/py/nlcalc.svg
:target: https://badge.fury.io/py/nlcalc.. image:: https://coveralls.io/repos/github/pri22296/nlcalc/badge.svg?branch=master
:target: https://coveralls.io/github/pri22296/nlcalc?branch=master.. image:: https://travis-ci.org/pri22296/nlcalc.svg?branch=master
:target: https://travis-ci.org/pri22296/nlcalc.. image:: https://api.codacy.com/project/badge/Grade/0ad006a377474ddcb251dc94418d48a2
:target: https://www.codacy.com/app/pri22296/nlcalc?utm_source=github.com&utm_medium=referral&utm_content=pri22296/nlcalc&utm_campaign=Badge_Grade.. image:: https://landscape.io/github/pri22296/nlcalc/master/landscape.svg?style=flat
:target: https://landscape.io/github/pri22296/nlcalc/master
:alt: Code Health
.. image:: https://readthedocs.org/projects/nlcalc/badge/?version=latest
:target: http://nlcalc.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status.. inclusion-marker-badges-end
.. inclusion-marker-introduction-start
**************************************************************************
Introduction
**************************************************************************This Package is an example project for the
`botify `_ framework. It can be
used to parse mathematical expressions expressed in natural language
and evaluate the result... inclusion-marker-introduction-end
.. inclusion-marker-usage-start
**************************************************************************
Usage
**************************************************************************.. code:: python
>>> from nlcalc import NLCalculator
>>> my_calc = NLCalculator()
>>> result = my_calc.calculate("what is two plus twenty five")
>>> print(result)
27
>>> result = my_calc.calculate("3 square plus four square")
>>> print(result)
25.. inclusion-marker-usage-end
.. inclusion-marker-install-start
**************************************************************************
Installation
**************************************************************************::
pip install nlcalc
.. inclusion-marker-install-end
.. inclusion-marker-links-start
**************************************************************************
Links
*************************************************************************** `Documentation `_
* `Source `_
* `API Reference `_
.. inclusion-marker-links-end
.. inclusion-marker-license-start
**************************************************************************
License
**************************************************************************This project is licensed under the MIT License - see the `LICENSE.txt `_ file for details.
.. inclusion-marker-license-end