dynet

DyNet: The Dynamic Neural Network Toolkit

  • 所有者: clab/dynet
  • 平台:
  • 许可证: Apache License 2.0
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图


Build Status (Travis CI)
Build Status (AppVeyor)
Build Status (Docs)
PyPI version

The Dynamic Neural Network Toolkit

General

DyNet is a neural network library developed by Carnegie Mellon University and many others. It is written in C++ (with bindings in Python) and is designed to be efficient when run on either CPU or GPU, and to work well with networks that have dynamic structures that change for every training instance. For example, these kinds of networks are particularly important in natural language processing tasks, and DyNet has been used to build state-of-the-art systems for syntactic parsing, machine translation, morphological inflection, and many other application areas.

Read the documentation to get started, and feel free to contact the dynet-users group group with any questions (if you want to receive email make sure to select "all email" when you sign up). We greatly appreciate any bug reports and contributions, which can be made by filing an issue or making a pull request through the github page.

You can also read more technical details in our technical report.

Getting started

You can find tutorials about using DyNet here (C++) and here (python), and here (EMNLP 2016 tutorial).

One aspect that sets DyNet apart from other tookits is the auto-batching feature. See the documentation about batching.

The example folder contains a variety of examples in C++ and python.

Installation

DyNet relies on a number of external programs/libraries including CMake,
Eigen, and Mercurial (to install Eigen). CMake, and Mercurial can
be installed from standard repositories.

For example on Ubuntu Linux:

sudo apt-get install build-essential cmake mercurial

Or on macOS, first make sure the Apple Command Line Tools are installed, then
get CMake, and Mercurial with either homebrew or macports:

xcode-select --install
brew install cmake hg  # Using homebrew.
sudo port install cmake mercurial # Using macports.

On Windows, see documentation.

To compile DyNet you also need the development version of the Eigen
library
. If you use any of the
released versions, you may get assertion failures or compile errors.

If you don't have Eigen already, you can get it easily using the
following command:

hg clone https://bitbucket.org/eigen/eigen/ -r b2e267d

The -r NUM specified a revision number that is known to work. Adventurous
users can remove it and use the very latest version, at the risk of the code
breaking / not compiling. On macOS, you can install the latest development
of Eigen using Homebrew:

brew install --HEAD eigen

C++ installation

You can install dynet for C++ with the following commands

# Clone the github repository
git clone https://github.com/clab/dynet.git
cd dynet
mkdir build
cd build
# Run CMake
# -DENABLE_BOOST=ON in combination with -DENABLE_CPP_EXAMPLES=ON also
# compiles the multiprocessing c++ examples
cmake .. -DEIGEN3_INCLUDE_DIR=/path/to/eigen -DENABLE_CPP_EXAMPLES=ON
# Compile using 2 processes
make -j 2
# Test with an example
./examples/train_xor

For more details refer to the documentation

Python installation

You can install DyNet for python by using the following command

pip install git+https://github.com/clab/dynet#egg=dynet

For more details refer to the documentation

Citing

If you use DyNet for research, please cite this report as follows:

@article{dynet,
  title={DyNet: The Dynamic Neural Network Toolkit},
  author={Graham Neubig and Chris Dyer and Yoav Goldberg and Austin Matthews and Waleed Ammar and Antonios Anastasopoulos and Miguel Ballesteros and David Chiang and Daniel Clothiaux and Trevor Cohn and Kevin Duh and Manaal Faruqui and Cynthia Gan and Dan Garrette and Yangfeng Ji and Lingpeng Kong and Adhiguna Kuncoro and Gaurav Kumar and Chaitanya Malaviya and Paul Michel and Yusuke Oda and Matthew Richardson and Naomi Saphra and Swabha Swayamdipta and Pengcheng Yin},
  journal={arXiv preprint arXiv:1701.03980},
  year={2017}
}

Contributing

We welcome any contribution to DyNet! You can find the contributing guidelines here

主要指标

概览
名称与所有者clab/dynet
主编程语言C++
编程语言CMake (语言数: 12)
平台
许可证Apache License 2.0
所有者活动
创建于2015-02-08 23:09:21
推送于2023-12-01 17:10:01
最后一次提交2023-11-08 14:40:01
发布数10
最新版本名称2.1.2 (发布于 )
第一版名称v1.0-rc1 (发布于 )
用户参与
星数3.4k
关注者数181
派生数704
提交数3.3k
已启用问题?
问题数937
打开的问题数227
拉请求数662
打开的拉请求数12
关闭的拉请求数63
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?