Skip to content

Commit

Permalink
updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
j-luo93 committed Sep 20, 2021
1 parent b32dcb5 commit 480bad2
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 12 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 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](http://people.csail.mit.edu/j_luo/assets/publications/NeuroDecipher.pdf). Still cleaning up some part of the code. Stay tuned for updates.
This repo hosts the codebase for reproduce the results for the ACL paper [Neural Decipherment via Minimum-Cost Flow: from Ugaritic to Linear B](http://people.csail.mit.edu/j_luo/assets/publications/NeuroDecipher.pdf).

# Data
Data for linear B and Ugaritic are included in the `data` folder:
Expand All @@ -11,3 +11,13 @@ Data for linear B and Ugaritic are included in the `data` folder:

Note that you might need to install [fonts](https://www.google.com/get/noto/#sans-linb) 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.
11 changes: 11 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
cython
ortools
cvxopt
pandas
prettytable
tensorflow
treelib
enlighten
pytrie
colorlog
numpy
22 changes: 11 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
packages=find_packages(),
)

setup(
name='dev_misc',
version='0.1',
packages=find_packages())

setup(
name='arglib',
version='0.0',
packages=find_packages(),
)

#setup(
# name='dev_misc',
# version='0.1',
# packages=find_packages())
#
#setup(
# name='arglib',
# version='0.0',
# packages=find_packages(),
#)
#

0 comments on commit 480bad2

Please sign in to comment.