Skip to main content
Help improve PyPI by participating in a 5-minute user interface survey!

Natural Language Mathematical Calculator

Project Description

Introduction

https://api.codacy.com/project/badge/Grade/0ad006a377474ddcb251dc94418d48a2 Code Health Documentation Status

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

License

This project is licensed under the MIT License - see the LICENSE.txt file for details.

Release history Release notifications

This version
History Node

0.1.1

History Node

0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
nlcalc-0.1.1.zip (8.1 kB) Copy SHA256 hash SHA256 Source None Apr 3, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page