Skip to main content

A set of tools for handling data to create GailBot plugins

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gailbottools-0.0.13.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

GailBotTools-0.0.13-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

File details

Details for the file gailbottools-0.0.13.tar.gz.

File metadata

  • Download URL: gailbottools-0.0.13.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.0

File hashes

Hashes for gailbottools-0.0.13.tar.gz
Algorithm Hash digest
SHA256 00765830d11bcb6087fd159261a4196011ef498012c2a752d43143de2779e888
MD5 eeeb122a3e078e842bb84f83c35d114b
BLAKE2b-256 26c3419ad70539f2fb8e68b0d4f898faa7f6b890112ec94841405792e9e0a81b

See more details on using hashes here.

File details

Details for the file GailBotTools-0.0.13-py3-none-any.whl.

File metadata

  • Download URL: GailBotTools-0.0.13-py3-none-any.whl
  • Upload date:
  • Size: 21.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.0

File hashes

Hashes for GailBotTools-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 16c36cca6f8afd802e7a9390a3a66f340994ffbe9bbaac960843e38aae35bc6c
MD5 aab537a2d8c67150af77436ac673dc79
BLAKE2b-256 fa27621570d24875f6a9847899a9115867a548feaabdab96d3653a8acd7aa4ad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page