CONLL Transform - functions to manipulate CONLL data
This package constains several functions to manipulate conll data:
read_files: Read one or several conll files and return a dictionary of documents.read_file: Read a conll file and return dictionary of documents.write_file: Write a conll file.compute_mentions: Compute mentions from the raw last column of the conll file.compute_chains: Compute and return the chains from the conll data.sentpos2textpos: Transform mentions[SENT, START, STOP]to[TEXT_START, TEXT_STOP].textpos2sentpos: Transform mentions[TEXT_START, TEXT_STOP]to[SENT, START, STOP].write_chains: Convert a list of chains to a conll coreference column.replace_coref_col: Replace the last column oftar_docsby the last column ofsrc_docs.remove_singletons: Remove the singletons of the conll fileinfpath, and write the version without singleton in the conll fileoutfpath.filter_pos: Filter mentions that have POS in unwanted_pos, return a new mention list.check_no_duplicate_mentions: Return True if there is no duplicate mentions.merge_boundaries: Add the mentions ofboundary_docstocoref_docsif they don't already exist, as singletons.remove_col: Remove columns from all tokens in docs.write_mentions: Opposite forcompute_mentions(). Write the last column insent.compare_coref_cols: Build a conll file that merge the corefcols of several other files.to_corefcol: Write the conll fileoutfpathwith just the last column (coref) of the conll fileinfpath.get_conll_2012_key_pattern: Return a compiled pattern object to match conll2012 key format.merge_amalgams: Add amalgams in documents from where they have been removed.
To use it, just import the function from conll_transform, for example:
from conll_transform import read_files
documents = read_files("myfile.conll", "myfile2.conll")
print(documents)
The source can be found at GitHub.
Metadata
Release files for conll-transform 0.1.0
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 |
|---|---|---|---|---|
| conll_transform-0.1.0.tar.gz | 8.4 kB | Without provenance | Details for conll_transform-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| conll_transform-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for conll_transform-0.1.0-py3-none-any.whl |
Total release size: 17.0 kB
Release files / conll_transform-0.1.0.tar.gz
| Download URL | conll_transform-0.1.0.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
26ed32f55f20aef06b39a4af40360ea30948491c6f9daf206e85d8a995e0c395
|
|
BLAKE2b-256 checksum How to use checksums |
c51141a298bbce94cc05f607766666ffbaccaec6ba5f8ff4973afb3f191a359e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / conll_transform-0.1.0-py3-none-any.whl
| Download URL | conll_transform-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c06c97b3cb25673d40b66ed25c91ecb91adbb4aae4c229fecda0bfe22ce5d324
|
|
BLAKE2b-256 checksum How to use checksums |
28670fcd538ffc5622029dc9c42060d9fba2656b2c74d6a10b376e54bee3bae0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Security for conll-transform 0.1.0
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.