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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gailbottools-0.0.11.tar.gz.
File metadata
- Download URL: gailbottools-0.0.11.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
429c4ba8e1255cb714c783837f3c03b18f6e3036fbbec1d447bec60edaba5ecf
|
|
| MD5 |
220c6ac7b7afe48741edd5822f4cbbb6
|
|
| BLAKE2b-256 |
123ca2b1d4c6f2497a61c56234c889816f66cd8bbd44e0096ce285ba42abc569
|
File details
Details for the file GailBotTools-0.0.11-py3-none-any.whl.
File metadata
- Download URL: GailBotTools-0.0.11-py3-none-any.whl
- Upload date:
- Size: 18.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f965eecaff5a5f0c20a01eb58218077a827f8e601ade2eaa90e05d491dcab3e
|
|
| MD5 |
f3fe0672c3da07a0d2b809e147f2b123
|
|
| BLAKE2b-256 |
652913498501bce7fdeab81db7d1bf943ebd82f88eafb4a7f5f166950209151b
|