No description, website, or topics provided.
Clojure Python Java
Switch branches/tags
Nothing to show
Latest commit d5d7a61 Oct 31, 2013 @syou6162 Merge branch 'develop'
Permalink
Failed to load latest commit information.
bin
data
src
test/simple_shift_reduce_parsing/test
.gitignore
README.md
project.clj

README.md

simple_shift_reduce_parsing

Shift-reduce parser based on Nivre (2004).

Usage

# command line help
% lein run -m simple_shift_reduce_parsing.core --help

# training the model from annotated sentences
% lein run --mode train --training-filename train.txt --k 10

# parse test sentences
% lein run --mode test --test-filename test.txt

# evaluate the system performance
% lein run --mode eval --test-filename test.txt

About this model

Nivre (2004)のarc-eagerなshift-reduce parserです。liblinearを利用しています。素性にはZhang and Nivre (ACL2011)の素性を入れています。

File format conversion

# mst format => conll format (with unlabeld)
% python bin/mst2conll.py data/test.lab | awk '{if ($0 != "") {print $1"\t"$2"\t"$3"\t"$4"\t"$5"\t"$6"\t"$7"\t_"} else {print}}' > gold.txt

Error analysis

# you can use 'whatswrong' (https://code.google.com/p/whatswrong/) to analyze the parsing errors
% java -jar bin/whatswrong-0.2.3-standalone.jar

License

Copyright (C) 2013 Yasuhisa Yoshida

Distributed under the Eclipse Public License, the same as Clojure.