• Stars
    star
    121
  • Rank 293,924 (Top 6 %)
  • Language
    Python
  • License
    Other
  • Created about 9 years ago
  • Updated almost 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Example usages of Chainer for natural language processing.

Chainer example code for NLP

This repository is out of date and rough. I do not guarantee that these code works correctly.

I am developing a new NMT toolkit NMTKit and strongly recommend to use it instead of these samples to train neural translation models.

This repository contains some neural network examples for natural language processing (NLP) using Chainer framework.

Chainer Official (GitHub)

Making Local Client

Before running these scripts, making a local python client using pyenv is reccomended, like:

$ pyenv install 3.5.0
$ pyenv virtualenv 3.5.0 example
$ pyenv shell example
$ pip install chainer

Contents

  • Machine Translation

    • mt_s2s_encdec.py - Using encoder-decoder style recurrent neural network
    • mt_s2s_attention.py - Using attentional neural network
  • Word Segmentation (Tokenization)

    • seg_ffnn.py - Using feedforward neural network
    • seg_rnn.py - Using recurrent neural network
  • Language Model

    • lm_rnn.py - Using recurrent neural network (RNNLM)

Contact

If you find an issue or have some questions, please contact Yusuke Oda:

  • @odashi_t on Twitter (faster than other methods)
  • yus.takara (at) gmail.com

More Repositories

1

davinci-functions

Library to ask OpenAI GPT for generating objects on the Python runtime.
Python
193
star
2

small_parallel_enja

50k English-Japanese Parallel Corpus for Machine Translation Benchmark.
Roff
84
star
3

mteval

Collection of Evaluation Metrics and Algorithms for Machine Translation
C++
75
star
4

nmtkit

Neural Network-based Statistical Machine Translation Toolkit.
C++
72
star
5

ckylark

A latent-annotated probabilistic context-free grammar (LAPCFG) parser.
C++
30
star
6

ase15-django-dataset

Django Dataset for Code Translation Tasks
Python
26
star
7

chainer_nmt

Neural machine translation tools built on Chainer
Python
12
star
8

encoding

Shift_JIS, EUC-JP, UTF-8, UTF-16LE/BEをUnicodeコードポイントに変換する.
C++
6
star
9

nn_parsers

Python
5
star
10

unopt-py

Utilities to unwrap Optional types.
Python
5
star
11

integra7-cubase

Cubase patch script for Roland INTEGRA-7.
4
star
12

cudnn-memo

Example code of cuDNN.
Cuda
4
star
13

cloud-storage-mocker

Mocker library of Google Cloud Storage with local filesystem mounting.
Python
4
star
14

nlptools

My Python NLP scripts
Python
3
star
15

dycg

[WIP] Dynamic computation graph library in Rust.
Rust
2
star
16

iconvpp

Simple ICONV wrapper for C++
C++
2
star
17

terraform-gcp-template

Terraform template for new GCP projects.
HCL
1
star
18

greedyseg

Greedy-based segmentation algorithm
Python
1
star
19

pcfg

A Simple PCFG Example.
Python
1
star
20

twitter-manager

Scripts to manage my Twitter account.
Python
1
star
21

incremental-tagger

Incremental part-of-speech tagger using tagging histories
Python
1
star
22

hoshino_preorder

Supervised Pre-ordering method proposed by Hoshino et al.
Python
1
star
23

MMSystem.NET

winmm.dllの機能群のC#ラッパ(かもしれない)
C#
1
star
24

cosmic-velocity

Simulate the orbit of satellite & solve the 1st/2nd cosmic velocity of the earth. (made from MATLAB language)
Objective-C
1
star
25

markup-prompter

Organizes LLM prompts with Markdown.
Python
1
star