Git Product home page Git Product logo

hebrew_srl's Introduction

Building a Hebrew FrameNet Lexical Resource from Parallel Movie Subtitles

Summary

This work sets out to acquire Hebrew exemplar sentences with FrameNet annotations by projecting annotations from English. To this end, we use the OpenSubtitles 2016 dataset of aligned English-Hebrew subtitles of movies and television shows.

Contents

This repository contains the following:

  • Thesis in PDF format
  • Source code for the SRL visualization tool
  • Jupyter notebooks for dataset construction, dataset statistics, and feature extraction
  • Two sqlite databases: manual_annotations.sqlite3 (original seed) and data.sqlite3 (result of classifier annotation on a subset of the dataset)
  • The code for the classifier, and a pickled trained classifier

Aligned SRL Visualization

Example

In order to run the SRL visualization tool, you need:

  • Python 3.5 or later (Python 2 not supported)
  • conllu package to parse CoNLL-U format
  • scikit-learn and imbalanced-learn for the classifier
  • Download the dataset from here and place it in the static/dataset directory

The best way to get started is to create a new virtual environment (either through Conda or python3 -m venv <venv name>), and run pip install -r requirements.txt, followed by python3 viz.py.

Data

Statistics

# of subtitles # of sentences # of English tokens # of Hebrew tokens (before segmentation) # of Hebrew tokens (after segmentation) English vocabulary size Hebrew vocabulary size
30,789 23,062,193 194,217,249 118,236,346 188,375,525 1,540,672 894,759

Processing

The following diagram shows the data pipeline in our work:

Flowchart

Specifications

The computer used to process the data is an Intel Xeon E5645 @ 2.40 GHz with 24 cores and 128GB RAM.

Runtime

  • English POS-tagging and dependency parsing: less than one day
  • Hebrew segmentation, morphological analysis, morphological disambiguation, and dependency parsing using YAP: one month
  • Automatic English-Hebrew alignment: one day
  • English SRL: one week
  • Each of the other parts took a few minutes

hebrew_srl's People

Contributors

beneyal avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

hebrew_srl'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.