Code Monkey home page Code Monkey logo

neurodecipher's Introduction

NeuroDecipher

This repo hosts the codebase for reproduce the results for the ACL paper Neural Decipherment via Minimum-Cost Flow: from Ugaritic to Linear B.

Data

Data for linear B and Ugaritic are included in the data folder:

  • uga-heb.no_spe.cog is the entire Ugaritic-Hebrew data obtained from Ben Snyder. no_spe stands for no special symbols since the original file contains special symbols that mark the morphological segmentations and affixes.
  • uga-heb.small.no_spe.cog is the exact random subset of Ugaritic data I used in the paper for training the model. Around one tenth of the original file.
  • linear_b-greek.cog is the linear B data used in the paper. notebooks/Linear_b_simplified.ipynb is the same notebook I used for preparing the linear B data.
  • linear_b-greek.names.cog is the linear B data that only included names on the Greek side.

Note that you might need to install fonts in order to render Linear B scripts properly in your computer.

Install

  • Run git submodule init && git submodule update to obtain all the submodules.
  • Install pytorch. Any version >= 1.3 should work.
  • pip install -r requirements.txt for other libraries.
  • Go to the three folders (editdistance, arglib, and dev_misc) and run pip install . in each folder to install the dependency.
  • Run pip install . in the root folder.

Run

The recommended way to run this program is to write down a configuration class first. See nd/config/decipher_config.py for an example, and accordingly you can use python nd/main.py --cfg UgaHebSmallNoSpe to start running.

neurodecipher's People

Contributors

j-luo93 avatar

Stargazers

kappa0x avatar �̪̜̳̣͏�̡͚̺͖̣͈̬̥̀ͮ͂͋ͨ́̄͑͌́̍̊̊̆̋̄̀͠͠͠͠҉̴̷̨̡̢̢́̀͘͢J͊̊ͩ̂ͬ̎́͑̋ͬ͒͆ͯ̌ͭ̋̿ͦͩ҉̶̛̕͘̕͟͏̷̵̵̢̀̀͘͜͡͝͡K̘̬̮̓ͨ̔͗̔͑͘͞͏̨̡͢͢͜͝͝͝o̴̷̞̰̩̣̩͚̻̞̩̱̝̲̦ͩͬ͒͑̉ͤ̊̐͛ͥ̽̚͝͡͠R̷̴̡̨̛͇̖̺͚̲̞̠̜̳͚͊ͩͣ̌ͪ̔ͯ̂́̀͘͘͟͟͝͝ͅḛ̗̓ͥ͐͐ͫ͌̃̏́ͤ1̴̴̸̴̴̨̨͆̑ͦͭ͆͑͛͋̑ͯ̕̕͟͟͡͡3͕͙̜̭̥̞̜͙̖̬̯̻͚̮͎͙̼̔ͯͪͅ͏̵̵̢̧́͜͢͟͡҉̢́́̕͢ avatar  avatar New Cool Discoveries avatar  avatar Eric Harley avatar Danlu Chen avatar  avatar STYLIANOS IORDANIS avatar 半年 avatar  avatar Mochizuki Shigure avatar Yinqi Huang avatar rafiki avatar  avatar Rohan Sikand avatar gayuna avatar Alex Braylan avatar Peiyuan Liao avatar Daniel Corsano avatar Hope McGovern avatar  avatar Christine Rehm avatar Niranjan Ravichandra avatar Cody Kingham avatar Rish avatar Derek Yen avatar Mukund Choudhary avatar  avatar  avatar Khuyen Duong avatar  avatar  avatar Xiangdong Zeng avatar Clément Besnier avatar Chi-Liang, Liu avatar DM avatar John Musgrave avatar Alex Sosnovshchenko avatar  avatar  avatar Alex avatar Hang Dong avatar Liang Ding avatar Aydın Gerek avatar María Ribes Lafoz avatar  avatar huzh avatar  avatar  avatar LvTianlei avatar

Watchers

James Cloos avatar William Porquet avatar  avatar  avatar James M. Tucker avatar paper2code - bot avatar

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