Skip to content

Commit

Permalink
Added link to doc in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
neubig committed May 29, 2017
1 parent d850eac commit ab40c24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 36 deletions.
39 changes: 4 additions & 35 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,10 @@ eXtensible Neural Machine Translation
=====================================

This is a repository for the extensible neural machine translation toolkit `xnmt`.
The over-arching goal of `xnmt` is that it be easy to use for research, and thus it supports
a modular design that means that new methods should be easy to implement by adding new modules.
It is coded in Python based on [DyNet](http://github.com/clab/dynet).

Usage Directions
----------------
More information can be found in the following documentation:

If you want to try to run an experiment, you can do so using sample configurations in the `examples`
directory. For example, if you wnat to try [the default configuration file](examples/standard.yaml),
which trains an attentional encoder-decoder model, you can do so by running

python xnmt/xnmt_run_experiments.py examples/standard.yaml

There are other examples here:

* `examples/debug.yaml`: A simple debugging configuration that should run super-fast
* `examples/speech.yaml`: An example of speech-to-text translation

See [experiments.md](experiments.md) for more details about writing experiment configuration files.

Programming Style
-----------------

The over-arching goal of `xnmt` is that it be easy to use for research. When implementing a new
method, it should require only minimal changes (e.g. ideally the changes will be limited to a
single file, over-riding an existing class). Obviously this ideal will not be realizable all the
time, but when designing new functionality, try to think of this goal.

There are also a minimal of coding style conventions:
* Follow Python conventions, and be Python2/3 compatible.
* Functions should be snake case.
* Indentation should be two whitespace characters.

We will aim to write unit tests to make sure things don't break, but these are not implemented yet.

In variable names, common words should be abbreviated as:
* source -> src
* target -> trg
* sentence -> sent
* hypothesis -> hyp
* Documentation: [![Documentation Status](http://readthedocs.org/projects/xnmt/badge/?version=latest)](http://xnmt.readthedocs.io/en/latest/?badge=latest)
2 changes: 1 addition & 1 deletion doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ There are other examples here:
- ``examples/debug.yaml``: A simple debugging configuration that should run super-fast
- ``examples/speech.yaml``: An example of speech-to-text translation

See [experiments.md](experiments.md) for more details about writing experiment configuration files.
See ``experiments.md`` for more details about writing experiment configuration files.

Programming Style
-----------------
Expand Down

0 comments on commit ab40c24

Please sign in to comment.