SegEval v2.0
Text segmentation is the task of splitting up any amount of text into segments by placing boundaries between some atomic unit (e.g., morphemes, words, lines, sentences, paragraphs, sections, etc.). It’s a common pre-processing step in many Natural Language Processing (NLP) tasks.
This package is a collection of metrics and for comparing text segmentations and evaluating automatic text segmenters. Both new (Boundary Similarity, Segmentation Similarity) and traditional (WindowDiff, Pk) are included, as well as inter-coder agreement coefficients and confusion matrices based upon a boundary edit distance.
To see some examples of its usage, read the docs.
Feature Support
Included is a variety of segmentation comparison metrics, including:
Boundary Edit Distance (BED)
Boundary Similarity (B)
BED-based confusion matrices (and precision/recall/F1)
Segmentation Similarity (S)
WindowDiff
Pk
Additionally, B-based inter-coder agreement coefficients for segmentation that are suitable for 2 or more coders are provided, including:
Fleiss’ Pi (i.e., Siegel and Castellan’s K)
Fleiss’ Kappa
Installation
To install SegEval, simply run:
$ pip install segeval
Documentation
Documentation is available at http://segeval.readthedocs.org/.
Citing SegEval
If you’re using this software for research, please cite the ACL paper [PDF] and, if you need to go into details, the thesis [PDF] describing this work:
Chris Fournier. 2013. Evaluating Text Segmentation using Boundary Edit Distance. Proceedings of 51st Annual Meeting of the Association for Computational Linguistics. (ACL 2013), to appear. Association for Computational Linguistics, Stroudsburg, PA, USA.
Chris Fournier. 2013. Evaluating Text Segmentation. (Master’s thesis). University of Ottawa.
BibTeX:
@inproceedings{Fournier2013a,
author = {Fournier, Chris},
year = {2013},
title = {{Evaluating Text Segmentation using Boundary Edit Distance}},
booktitle = {Proceedings of 51st Annual Meeting of the Association for Computational Linguistics},
publisher = {Association for Computational Linguistics},
location = {Sophia, Bulgaria},
pages = {to appear},
address = {Stroudsburg, PA, USA}
}
@mastersthesis{Fournier2013b,
author = {Fournier, Chris},
title = {Evaluating Text Segmentation},
school = {University of Ottawa},
year = {2013}
}
Metadata
Release files for segeval 2.0.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| segeval-2.0.11.tar.gz | 39.8 kB | Without provenance | Details for segeval-2.0.11.tar.gz |
Release files / segeval-2.0.11.tar.gz
| Download URL | segeval-2.0.11.tar.gz |
|---|---|
| Size | 39.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a13babad83462b954ae6ccfb698bdac050c2231bfb551c2838ae4b70fa1fd5af
|
|
BLAKE2b-256 checksum How to use checksums |
3a81a3022624a621fe29d9ef2fddaadf637b42d005c233b4046e6b5ab8173312
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for segeval 2.0.11
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.