Skip to main content

GailBotPluginsTools

Overview

GailBotPluginsTools is a package designed to facilitate the creation and management of plugins for the GailBot platform. It simplifies the interaction with transcriptions, providing data handlers that manipulate XML markers and utterances.

Features

  • Marker Utterance Dictionary: Efficiently manages utterances, their timings, and speaker information.
  • Structured Interaction: Provides an outer layer that wraps around the marker utterance dictionary for enhanced functionality.
  • Data Objects: Defines necessary data structures for handling utterances effectively.

Usage

The package includes several key modules:

marker_utterance_dict.py

  • Class: MarkerUtteranceDict
  • Purpose: Creates a dictionary to manage utterances, keeping track of speaker information, start and end times, and overlaps.
  • Key Methods:
    • __init__: Initializes the dictionary with utterance data.
    • turn_criteria_overlaps: Checks if the difference between two utterances meets a defined threshold.

StructureInteract.py

  • Class: StructureInteract
  • Purpose: Interacts with the marker utterance dictionary and manages the output path for plugin results.
  • Key Methods:
    • apply: The main driver function that processes the input data and populates the data structure.
    • parse_xml_to_gbpluginmethods: Converts XML data into a format usable by the GailBot Plugin methods.

data_objects.py

  • Class: UttObj
  • Purpose: Defines the structure for an utterance object, encapsulating its properties like start time, end time, speaker, and text.

Installation

To install the package, use the following command:

pip install gailbottools

Example

Here is a simple example of how to use the package:

from gailbot_plugin_tools import StructureInteract

# Sample XML data
xml_data = """
<transcript>
    <u speaker="Speaker1">
        <w start="0.0" end="0.5">Hello</w>
        <w start="0.6" end="1.0">World</w>
    </u>
</transcript>
"""

# Create an instance of StructureInteract
interactor = StructureInteract()
# Apply the XML data
interactor.apply(xml_data)

Contributing

Contributions are welcome! Please submit a pull request or open an issue for suggestions and enhancements.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Authors

  • Hannah Shader
  • Jason Wu
  • Jacob Boyar
  • Vivian Li
  • Eva Caro
  • Manuel Pena
  • Phi Bui

Metadata

Release files for GailBotTools 0.2.1

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

Source distribution (sdist)

Source distribution for GailBotTools 0.2.1
File Size Uploaded Provenance Actions
GailBotTools-0.2.1.tar.gz 35.8 kB Without provenance Details for GailBotTools-0.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 82.8 kB

Release files / GailBotTools-0.2.1.tar.gz

Download URL GailBotTools-0.2.1.tar.gz
Size 35.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c62ec7c36777aca3699db4c3fbc578df5437feca8e8707c7e1e1f218e60b7135
BLAKE2b-256 checksum
How to use checksums
f57f3e1f6abda06273d8741b64047394bc96c05a5ce3d601dfea9d454210b5ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.16

Release files / GailBotTools-0.2.1-py3-none-any.whl

Download URL GailBotTools-0.2.1-py3-none-any.whl
Size 47.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cd86f0e7223a9d16bdac348c5d439b72599f6c77fc4c9ecdd07243e4329c92f9
BLAKE2b-256 checksum
How to use checksums
8aa982388c429d4c8d7267111e5014092ba223a4ac93b08c18dc38e88736c6db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.16

Security for GailBotTools 0.2.1

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.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files No provenance

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