Django-colloquial is an application designed to manage media files and their associated webvtt transcripts, using a custom tag format to cross-link tagged phrases (“colloquialisms”) in the text. Features:
Parse existing transcripts for tagged colloquialisms
Automatically tag known colloquialisms in untagged transcripts
Filter related transcripts by common colloquialisms
Requirements & Installation
Currently requires python 2.7 and django 1.10. Wider support coming soon. To install:
pip install django-colloquial
Then add to your INSTALLED_APPS:
INSTALLED_APPS = (
...
'colloquial.colloquialisms',
'colloquial.transcripts',
)
COLLOQUIAL_TYPES defines the different types of colloqiualisms supported and whether or not they may automatically tag:
COLLOQUIAL_TYPES = (
('idiom', 'Idiom', True),
('proper_name', 'Proper Name', False),
)
Transcript format
Transcripts should be in the webvtt format. Colloquialisms should be tagged using the format <c.TYPE>colloquialism text</c> where TYPE comes from the COLLOQUIAL_TYPES setting. For example:
1 00:00:00.092 --> 00:00:10.681 <v Rukuwai> Ko <c.tangata>Hohepa Tipene</c> te kaikorero e whai ake nei. He kaumatua no roto o <c.iwihapu>Te Rārawa</c>. I tupu ake i te reo o te kainga.
Running tests
Use tox (https://pypi.python.org/pypi/tox):
> pip install tox > cd path-to/django-colloquial > tox
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-colloquial-0.9.2.tar.gz.
File metadata
- Download URL: django-colloquial-0.9.2.tar.gz
- Upload date:
- Size: 18.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
279bf62f11487fbde6df4dd867e78156b17316d60e00d6e4812446a865f7cb35
|
|
| MD5 |
15a3a0b7d17e7a59bee7a23d9e4df5cf
|
|
| BLAKE2b-256 |
752cb0c0c4de6833e471202964538c399550f16f640fecd8d1f75e967ece5059
|