Skip to content

pri22296/nlcalc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Natural Language Mathematical Calculator

https://coveralls.io/repos/github/pri22296/nlcalc/badge.svg?branch=master https://travis-ci.org/pri22296/nlcalc.svg?branch=master https://api.codacy.com/project/badge/Grade/0ad006a377474ddcb251dc94418d48a2 Code Health Documentation Status

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.

About

Natural Language Mathematical Calculator

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages