Git Product home page Git Product logo

how-i-extracted-ted-talks-for-parallel-corpus-'s Introduction

Multilingual TED parallel Corpus: How I Extracted TED talks for parallel Corpus?


Recently One of my lab friend was working on web scraping with BeautifulSoup for static web site and other was listening to TED talks with interactive transcripts in regional languages. Afterwards It struck to my mind what if I crawled the TED talks to create multilingual Corpus ?

TED Talks are videos that present a great idea in 18 minutes or less. They’re filmed at flagship TED conferences, independent TEDx events, and other special TED programs. Their goal is to share Ideas Worth Spreading — in fields like science, technology, business, culture, art and design — around the world. The Open Translation Project is a global volunteer effort to subtitle TED Talks, and enable the inspiring ideas in them to crisscross languages and borders.

Subsequently, Within few mins of reading documentation on urllib, Beautifulsoup and page source of TED.com. As a enthusisst in corpus lingusitics, I was able to appreciate significance of Multilingual parallel corpus for 109 world languages extracted from TED.com which is powered by open source Opentranslation project. In this article I am explaining the detailed flow of creation of parallel corpus from interactive transcripts of TED talks.


#Step 1. Enlisting the TED talk names

TED.com is static website, so talks link location is static and can be acessed if we have prior information of talks details which can be derived through Beautiful soup and urllib library in python as given below

alt Step1 alt Step1 Thus, reference names of all TED talks is stored in all_talk_names as dictionary, to assist in crawling the translation data of talks. alt Step1


#Step 2. Extracting translations of TED talks data

alt Step1 Text data of talks consisted of time frames, translated text of available language and language code. So to maintain this hierarchy we have used pandas DataFrame to store collection of dictionaries containing aligned text and time frames with other languages which is saved in .csv file format. For this it required more than 48 hrs, extracting 2100+ TED talks of around 800MB text data. alt Step1


#Step 3. Concatenation of all TED talk csv files to single Data Frame To access text data of 109 languages of all talks , we need to store it in unified frame, for that all data in csv file is concatenated in single DataFrame df. alt Step1 alt Step1


#Step 4. Retrieving Parallel Corpus from all ted talk DataFrame df To extricate the monolingual, bilingual and multilingual parallel corpus, df[['ar','en','fr']] query is fired to access aligned text from tables in df.

alt Step1


TED Multilingual Parallel Corpus created using above process is available on github repository on above link :

https://github.com/ajinkyakulkarni14/TED-Multilingual-Parallel-Corpus

Source code : Ipython_notebook.ipynb


#Author Ajinkya Kulkarni

Contact [email protected]


how-i-extracted-ted-talks-for-parallel-corpus-'s People

Contributors

ajinkyakulkarni14 avatar

Watchers

James Cloos avatar Abhinav Sharma avatar

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.