Interspeech tools
This repository is not stable at all!!
How to install
This repository relies on the isca lib (which is also in development stage). Therefore it is recommended to create an environment and:
- install the isca-lib using the instructions from there: https://github.com/ISCAcoordinator/isca-lib/blob/main/README.md
- clone the current repository, go to the directory and then use pip to install
pip install -e .[dev]
How to use the tools
First in general, please refer to the command helper (is_pub <command> -h) for more information
We assume that the data from the google drive is stored into the variable "$CONFIG_PATH"
Generate the validation book
mkdir -p output/validation_book/
is_pub -vv generate_validation_book -b --compile-tool="latexmk" "$CONFIG_PATH" output/validation_book/
Generate the abstract book
mkdir -p output/abstract_book/
is_pub -vv generate_abstract_book -b --compile-tool="latexmk" "$CONFIG_PATH" output/abstract_book/
Generate the app data
mkdir -p output/app_data
is_pub -vv generate_app_data "$CONFIG_PATH" output/app_data
Generate the archive
mkdir -p output/archive
is_pub -vv generate_archive "$CONFIG_PATH" output/archive
Generate the validation packages for the helpers
To generate the validation packages (including the PDF report), use the following command:
is_pub -vv generate_validation_packages -n 5 -p "$CONFIG_PATH" output/packages
-n 5generates the packages for 5 helpers-pactivates the generation of the PDF reports (will compile the PDF as well so it takes some times)
How to use as a library
List all the individuals in the database with their emails
An exapanded of this snippet is available in the anonymization helper:
import pathlib
from interspeech_tools.conf import Config
from interspeech_tools.io.cmt import CMTSerialiser
# Load the conference
input_file = pathlib.Path("../data/ForPublicationCommittee_complete/config.yaml")
conf = Config(input_file)
ser = CMTSerialiser(conf)
conf = ser.load()
# FIXME: for now the annuary is private, but need to think about a better integration
annuary = conf._annuary
with open("anonymize_email.tsv", "w") as f_out:
f_out.write("original_emal\tobfuscated_email\n")
for person_idx, person in enumerate(annuary):
f_out.write(f"{person.email}\tid{person_idx}@is.invalid\n")
Extract the paper ID/presentation ID association
import pathlib
import re
import pandas as pd
from interspeech_tools.conf import Config
from interspeech_tools.io.cmt import CMTSerialiser
from isca.model.program import Presentation, ScientificSession
# Helper used in the publication tool to extract a condensed version of the presentation ID
def short_presentation_id(input: Presentation) -> str:
presentation_id = input.id
presentation_id = re.sub(r"Area([0-9])-", r"Area0\1-", presentation_id)
shorten = {"Area": "A", "Oral": "O", "Poster": "P", "ShowAndTell": "ST"}
for s, v in shorten.items():
presentation_id = presentation_id.replace(s, v)
return presentation_id
# Load the conference
input_file = pathlib.Path("../data/ForPublicationCommittee/config.yaml")
conf = Config(input_file)
ser = CMTSerialiser(conf)
conf = ser.load()
# Extract the association information
paperid2presentationid = []
for session in conf.sessions:
if isinstance(session, ScientificSession):
for presentation in session.presentations:
if presentation.presented_paper is not None:
paperid2presentationid.append({
"paper ID": int(presentation.presented_paper.id),
"presentation ID": short_presentation_id(presentation),
"Presenter": ', '.join([str(s) for s in presentation.presenters])
})
# Convert to a dataframe, sort by paper ID and save to an excel spreadsheet
df = pd.DataFrame(paperid2presentationid)
df = df.sort_values(by="paper ID")
df.to_excel("paper_id2presentation_id.xlsx", index=False)
Metadata
Release files for interspeech-tools 0.1.4
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 |
|---|---|---|---|---|
| interspeech_tools-0.1.4.tar.gz | 1.2 MB | Without provenance | Details for interspeech_tools-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| interspeech_tools-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for interspeech_tools-0.1.4-py3-none-any.whl |
Total release size: 2.5 MB
Release files / interspeech_tools-0.1.4.tar.gz
| Download URL | interspeech_tools-0.1.4.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0133e82ef31d16d2a5ca8a6af48b7063a55316f573b00454f460551ddd02404b
|
|
BLAKE2b-256 checksum How to use checksums |
172f8f6204db8b431e4fc43f0beac9793862e4bf51207a953c654dc26c3e3052
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.12
|
Release files / interspeech_tools-0.1.4-py3-none-any.whl
| Download URL | interspeech_tools-0.1.4-py3-none-any.whl |
|---|---|
| Size | 1.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9486380112626eb8e8a8d214ea60fef4cfd158edab8e090e27a51a41ec090552
|
|
BLAKE2b-256 checksum How to use checksums |
7f889af13b891302f7335fe5f58c6eeda38acc4c92c5db8e084513ebd9edd3ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.12
|
Security for interspeech-tools 0.1.4
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.