Giter VIP home page Giter VIP logo

014-udhr-dataset's Introduction

UDHR Dataset

The goal of this project is to create a multi-parallel dataset by aligning universal declaration of human rights (UDHR) documents. UDHR contains translations for over 500+ languages, which is a valuable resource for development and testing of CL/NLP tools. For example, Unicode uses this corpus to test encoding: https://unicode.org/udhr/translations.html

Current state of the dataset:

View on Google Drive

Downloading docs

We use XML files which are properly encoded to unicode.

mkdir data/xmls
cd data/xmls
wget https://unicode.org/udhr/assemblies/udhr_xml.zip
unzip udhr_xml.zip

Setup

Parse: XML to TSV

mkdir -p data/tsvs

# data/xmls/udhr_eng.xml -> data/tsvs/udhr_eng.tsv
for i in data/xmls/udhr_*.xml; do echo $i;
   ./udhr_parser.py -i $i -o ${i//xml/tsv};
done

Romanize

git clone [email protected]:isi-nlp/uroman.git
mkdir data/romanized/
# data/tsvs/udhr_eng.tsv -> data/rmonaized/udhr_eng.tsv
for i in data/tsvs/udhr_*.tsv; do echo $i;
   uroman/bin/uroman.pl < $i > ${i/tsvs/romanized}
done

Run Aligner

python udhr_align.py -i data/tsvs -o UDHR-align.v1
$ ll -1 UDHR-align.v1.*
   -rw-r--r-- 1 tg staff 6.3M Oct 28 04:05 UDHR-align.v1.tsv
   -rw-r--r-- 1 tg staff 2.3M Oct 28 04:05 UDHR-align.v1.xlsx
$

014-udhr-dataset's People

Contributors

thammegowda avatar

Stargazers

 avatar

Watchers

 avatar  avatar

014-udhr-dataset's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.