Skip to main content

A framework for evaluation and development of temporal-aware models.

Project description

tieval

PyPI Documentation Status PyPI - Python Version PyPI - License GitHub repo size

Paper

A framework for evaluation and development of temporally aware models.

Installation

The package is available on PyPI:

pip install tieval

It requires Python 3.8 or above.

Usage

To understand its usability refer to the notebooks available here.

Data

Throughout the last two decades many datasets have been developed to train this task. tieval provides an easy interface to download the available corpus.

To know more about the module run the following code on the terminal.

python -m tieval download --help

How to ...

In this section, we summarize how to perform the most useful operations in tieval.

download a dataset.

from pathlib import Path
from tieval import datasets

data_path = Path("data/")
datasets.download("TimeBank", data_path)

load a dataset.

from tieval import datasets

te3 = datasets.read("tempeval_3")

load a model.

from tieval import models

model = models.TimexIdentificationBaseline()

make predictions.

pred = model.predict(te3.test)

evaluate predictions.

from tieval import evaluate

annot = {doc.name: doc.timexs for doc in te3.test}
results = evaluate.timex_identification(annot, pred)

Contributing

  1. Fork it (https://github.com/LIAAD/tieval)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

Meta

Hugo Sousa - hugo.o.sousa@inesctec.pt

This framework is part of the Text2Story project which is financed by the ERDF – European Regional Development Fund through the North Portugal Regional Operational Programme (NORTE 2020), under the PORTUGAL 2020 and by National Funds through the Portuguese funding agency, FCT - Fundação para a Ciência e a Tecnologia within project PTDC/CCI-COM/31857/2017 (NORTE-01-0145-FEDER-03185)

Publications

If you use tieval in your work please site the following article:

@inproceedings{10.1145/3539618.3591892,
    author = {Sousa, Hugo and Campos, Ricardo and Jorge, Al\'{\i}pio M\'{a}rio},
    title = {Tieval: An Evaluation Framework for Temporal Information Extraction Systems},
    year = {2023},
    isbn = {9781450394086},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    url = {https://doi.org/10.1145/3539618.3591892},
    doi = {10.1145/3539618.3591892},
    booktitle = {Proceedings of the 46th International ACM SIGIR Conference on Research and Development in Information Retrieval},
    pages = {2871–2879},
    numpages = {9},
    keywords = {temporal information extraction, evaluation, python package},
    location = {Taipei, Taiwan},
    series = {SIGIR '23}
}

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

tieval-0.1.6.tar.gz (169.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tieval-0.1.6-py3-none-any.whl (37.4 kB view details)

Uploaded Python 3

File details

Details for the file tieval-0.1.6.tar.gz.

File metadata

  • Download URL: tieval-0.1.6.tar.gz
  • Upload date:
  • Size: 169.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for tieval-0.1.6.tar.gz
Algorithm Hash digest
SHA256 77c4eee07dc46e6b9ea03dc26939547b9c6450334b975f6ea224cf64a298ba29
MD5 b2d48171659495951feb0f302a327960
BLAKE2b-256 7e9d9185c59c6fee90aafcb6f66ad5577f198615f94ecd7dd8368f41a039f683

See more details on using hashes here.

File details

Details for the file tieval-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: tieval-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 37.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for tieval-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6d289d3fc4e7817e138dbeebef1eb5fbf93c8d7079f3b2783cffc2eb671ab5d1
MD5 b1347310ea0b5d0e0deef1bc95005498
BLAKE2b-256 bdc8b5df15405a1bd8f9254a7971926c9cbdfdb3622bb83602673f591cd7d9f0

See more details on using hashes here.

Supported by

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