Skip to main content

A package for determining the matrix language in bilingual sentences.

Project description

ml_determination

A package for determining the matrix language in bilingual sentences. This is the implementation of the algorithms presented in the paper "Methods for Automatic Matrix Language Determination of Code-Switched Speech"

## Installation

The main functionality can be easily installed into your Python environment using pip:

pip install ml_determination

Usage

To predict the matrix language using the package import the library and the matrix language determination classes for text:


Citation

If you use ml_determination in your projects, please feel free to cite the original EMNLP paper:

@inproceedings{iakovenko-hain-2024-methods, title = "Methods of Automatic Matrix Language Determination for Code-Switched Speech", author = "Iakovenko, Olga and Hain, Thomas", editor = "Al-Onaizan, Yaser and Bansal, Mohit and Chen, Yun-Nung", booktitle = "Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing", month = nov, year = "2024", address = "Miami, Florida, USA", publisher = "Association for Computational Linguistics", url = "https://aclanthology.org/2024.emnlp-main.330/", doi = "10.18653/v1/2024.emnlp-main.330", pages = "5791--5800", abstract = "Code-switching (CS) is the process of speakers interchanging between two or more languages which in the modern world becomes increasingly common. In order to better describe CS speech the Matrix Language Frame (MLF) theory introduces the concept of a Matrix Language, which is the language that provides the grammatical structure for a CS utterance. In this work the MLF theory was used to develop systems for Matrix Language Identity (MLID) determination. The MLID of English/Mandarin and English/Spanish CS text and speech was compared to acoustic language identity (LID), which is a typical way to identify a language in monolingual utterances. MLID predictors from audio show higher correlation with the textual principles than LID in all cases while also outperforming LID in an MLID recognition task based on F1 macro (60{%}) and correlation score (0.38). This novel approach has identified that non-English languages (Mandarin and Spanish) are preferred over the English language as the ML contrary to the monolingual choice of LID." }

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

ml_determination-0.1.0.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

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

ml_determination-0.1.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file ml_determination-0.1.0.tar.gz.

File metadata

  • Download URL: ml_determination-0.1.0.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.12

File hashes

Hashes for ml_determination-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ae76f5aa4ad8613c88982991d435c1dbb09845e1c15b470b83bdc31fc127ae0c
MD5 ca64b9a691b4f5ca45138a55d69f4d79
BLAKE2b-256 a0e15ca5b5a38ceb72d9719ec23740c5c8f07b5f4eb99478459cdfdef83c56b0

See more details on using hashes here.

File details

Details for the file ml_determination-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ml_determination-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1e2c79cda91a18d9db2dce10ddb3389127ef996013de390c3ebf49cd6c435480
MD5 a0c71fb89c9db34366bfa75240a5d442
BLAKE2b-256 ac8eecb04918a30931b73a5de3de0db2c26bb595b762b00d4d3d88b2f5ba59f0

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