Skip to main content

Natural Language Mathematical Calculator

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.

Metadata

Release files for nlcalc 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nlcalc 0.1.1
File Size Uploaded
nlcalc-0.1.1.zip 8.1 kB Details

Release files / nlcalc-0.1.1.zip

Download URL nlcalc-0.1.1.zip
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4938081af553be188479aff9593a5d8032c00ac12014312e8b51371b7588749c
BLAKE2b-256 checksum
How to use checksums
f3230d52456cef54542b312af2d8e99b597f64dfa51a142a9ea2ed5d26d4ac59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page