Skip to main content

A Framework for Cross-Dialectal NLP

Project description

Multi-VALUE: The VernAcular Language Understanding Evaluation benchmark

Setup From PyPi For Your Own Projects

pip install value-nlp

from multivalue import Dialects
southern_am = Dialects.SoutheastAmericanEnclaveDialect()
print(southern_am)
print(southern_am.transform("I talked with them yesterday"))
print(southern_am.executed_rules)

Setup From Source

Prerequisites:

  1. Create a virtual environment
conda create --name value python=3.10.13
conda activate value
  1. Install requirements:
pip install -r requirements.txt
  1. Install spaCy English pipeline and nltk wordnet
bash downloads.sh
  1. Confirm that your setup is correct by running the unittest
python -m unittest tests.py

Build Multi-VALUE CoQA (optional)

  1. Pull data
bash pull_coqa.sh
  1. Run for each dialect
python -m src.build_coqa_value --dialect aave &
python -m src.build_coqa_value --dialect appalachian &
python -m src.build_coqa_value --dialect chicano &
python -m src.build_coqa_value --dialect indian &
python -m src.build_coqa_value --dialect multi &
python -m src.build_coqa_value --dialect singapore &

Citation

@inproceedings{ziems-etal-2023-multi,
    title = "Multi-{VALUE}: A Framework for Cross-Dialectal {E}nglish {NLP}",
    author = "Ziems*, Caleb  and
      Held*, William  and
      Yang, Jingfeng  and
      Dhamala, Jwala  and
      Gupta, Rahul  and
      Yang, Diyi",
    editor = "Rogers, Anna  and
      Boyd-Graber, Jordan  and
      Okazaki, Naoaki",
    booktitle = "Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)",
    month = jul,
    year = "2023",
    address = "Toronto, Canada",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2023.acl-long.44",
    doi = "10.18653/v1/2023.acl-long.44",
    pages = "744--768",
    abstract = "Dialect differences caused by regional, social, and economic factors cause performance discrepancies for many groups of language technology users. Inclusive and equitable language technology must critically be dialect invariant, meaning that performance remains constant over dialectal shifts. Current systems often fall short of this ideal since they are designed and tested on a single dialect: Standard American English (SAE). We introduce a suite of resources for evaluating and achieving English dialect invariance. The resource is called Multi-VALUE, a controllable rule-based translation system spanning 50 English dialects and 189 unique linguistic features. Multi-VALUE maps SAE to synthetic forms of each dialect. First, we use this system to stress tests question answering, machine translation, and semantic parsing. Stress tests reveal significant performance disparities for leading models on non-standard dialects. Second, we use this system as a data augmentation technique to improve the dialect robustness of existing systems. Finally, we partner with native speakers of Chicano and Indian English to release new gold-standard variants of the popular CoQA task. To execute the transformation code, run model checkpoints, and download both synthetic and gold-standard dialectal benchmark datasets, see \url{http://value-nlp.org}.",
}

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

value_nlp-0.3.tar.gz (4.0 MB view details)

Uploaded Source

Built Distribution

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

value_nlp-0.3-py3-none-any.whl (4.2 MB view details)

Uploaded Python 3

File details

Details for the file value_nlp-0.3.tar.gz.

File metadata

  • Download URL: value_nlp-0.3.tar.gz
  • Upload date:
  • Size: 4.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.13

File hashes

Hashes for value_nlp-0.3.tar.gz
Algorithm Hash digest
SHA256 cbb2f504577a5d7ffd5447e7efae16125daa67c92921e04104e26b2ecb70921d
MD5 e64108950dc2e8d57af543aeaef3f4fb
BLAKE2b-256 a0df46d88a00ac430008e0cf01c8e4f5e8225ead55a3f64dc846112a35dac880

See more details on using hashes here.

File details

Details for the file value_nlp-0.3-py3-none-any.whl.

File metadata

  • Download URL: value_nlp-0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.13

File hashes

Hashes for value_nlp-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 053a019503e112880c15390e98085fd14134845432dd71c930be725ee6e15402
MD5 9ecebc3a06a3a5e03a9bc7eca191d6ce
BLAKE2b-256 c4fad95d791d83a0231fda592dbca3752fb0d0c96254880f70244f1679233c46

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