Skip to main content

Python wrapper for Heideltime library.

Project description

Python-HeidelTime

This is a python wrapper for the multilingual temporal tagger HeidelTime.

For more information about this temporal tagger, please visit : https://github.com/HeidelTime/heideltime

Heideltime needs a Part Of Speech Tagger, by default it uses TreeTagger : http://www.cis.uni-muenchen.de/~schmid/tools/TreeTagger/. This repo includes TreeTagger scripts for Mac and Linux. Windows users will have to download the appropriate scripts from the TreeTagger home page.

Demo

  1. Clone the current github repo: git clone https://github.com/amineabdaoui/python-heideltime
  2. Install its requirements: pip install -r requirements.txt
  3. Create a python file in the same directory with the following code:
import HeidelTime
hw = HeidelTime.HeidelTimeWrapper('english')
hw.parse('Neil Armstrong was born in 1930')

Future Work

  • Encapsulate the returned tagged string in a python object
  • Find a way to install the appropriate POS tagger files according to the user OS.
  • Package all the necessary parts in the same python package and release it on PyPi.

Pull requests are welcome to improve this wrapper (which is in an early stage).

Project details


Download files

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

Files for python-heideltime-krypton, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size python_heideltime_krypton-0.0.2-py3-none-any.whl (17.0 MB) File type Wheel Python version py3 Upload date Hashes View
Filename, size python-heideltime-krypton-0.0.2.tar.gz (17.0 MB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page