Pendulum is an intelligent text parsing utility with a focus on time.
Through the use of Natural Language Processing (NLP), Pendulum is able to take in a blob of text and extract context along with fuzzy dates and times. Through this extraction and evaluation the system can determine whether the given text contains any reminders, due dates, or past dates.
Combining the extracted context with the extracted dates allows for the generation of a Smart Note that automatically attaches reminders and dates that are relevant to the notes content.
- Python >= 3.7.x
- virtualenv >= 16.1.x
$ source ./env/bin/activate
$ pip install -r requirements.txt
$ python setup.py install
There are two ways to run Pendulum:
-
In demo mode with preset text:
python pendulum/
-
Running it as an API:
python pendulum/api.py
curl --request POST \
--url http://localhost:8000/SmartNote \
--header 'Cache-Control: no-cache' \
--header 'Content-Type: application/json' \
--header 'Postman-Token: f334235d-c5c6-4490-8d8f-0c35ea130042' \
--data '{\n "note": "Finish the homework for Artificial intelligence by this friday"\n}'