Natural Language Mathematical Calculator
Project description
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.
Usage
>>> 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
Installation
pip install nlcalc
Links
License
This project is licensed under the MIT License - see the LICENSE.txt file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nlcalc-0.1.1.zip
(8.1 kB
view hashes)