Skip to main content

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}
}

Metadata

Release files for tieval 0.1.11

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

Source distribution (sdist)

Source distribution for tieval 0.1.11
File Size Uploaded
tieval-0.1.11.tar.gz 166.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tieval 0.1.11
File Interpreter ABI Platform
tieval-0.1.11-py3-none-any.whl Python 3 none any Details

Total release size: 200.7 kB

Release files / tieval-0.1.11.tar.gz

Download URL tieval-0.1.11.tar.gz
Size 166.7 kB
Tags Source
SHA-256 checksum
How to use checksums
0ca62d66d41a8924b77e35a4ac1ac97c384638684ce4f3ce1cfb53bc02d2ffeb
BLAKE2b-256 checksum
How to use checksums
4ee5ee29a1c07a25523bf10ca749232f81ee4633de465f3ae7aaa8218dbf73bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.22

Release files / tieval-0.1.11-py3-none-any.whl

Download URL tieval-0.1.11-py3-none-any.whl
Size 33.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2b0ba2c4d7eb0cf5d64dbf089a468851c12a68a635e01e11dc039f690ce6e22f
BLAKE2b-256 checksum
How to use checksums
b55c3c13b5a258765d118473e6c7d7ba2a82315537f0575d1425622c905dad32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.22

Release history Release notifications | RSS feed

This release

0.1.11 This release

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.10

2 release files

0.0.8

1 release file

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.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