Skip to main content

Natural Language Mathematical Calculator

Project description

Introduction

https://badge.fury.io/py/nlcalc.svg 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.

Project details


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 details)

Uploaded Source

File details

Details for the file nlcalc-0.1.1.zip.

File metadata

  • Download URL: nlcalc-0.1.1.zip
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for nlcalc-0.1.1.zip
Algorithm Hash digest
SHA256 4938081af553be188479aff9593a5d8032c00ac12014312e8b51371b7588749c
MD5 e36541b58af18d19cd840a9b327e38d8
BLAKE2b-256 f3230d52456cef54542b312af2d8e99b597f64dfa51a142a9ea2ed5d26d4ac59

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page