Awesome
Demos for Kurohashi-Kawahara lab
Right now, they are Juman++. You can see the demo in action on this page.
Another thing here is Juman++ Partial Annotation tool, but it will probably move to its own repository later.
Screencast
To see the tool in action, please see the screencast: https://youtu.be/2tzW2n--axM
Running an Annotation tool from a package
- Download a package from Releases.
- Install Juman++ V2 package version, you will need a model.
- Install a MongoDB
- Clone and compile jumanpp-grpc.
- Edit
conf/application.conf
, you will need to add at least the following entries:
# URL of a mongo instance
mongo.uri = "mongodb://localhost:27017"
# Database names for jumanpp lattice demo (broken atm) and annotation tool
mongo.database = "jumanpp_demo" #
annotations.db = "anndemo"
# Path to Juman++ regular executable
akane.jumanpp.executable = "/usr/local/bin/jumanpp"
akane.jumanpp.grpc {
# Path to Juman++ GRPC executable
executable = "/home/user/dev/jumanpp-grpc/src/jumandic/jumanpp-jumandic-grpc"
# Configuration file for the Juman++ analysis model
config = "/usr/local/share/jumanpp/jumandic.conf"
}
The instance will be available at http://localhost:9000. You can change the port with http.port
.
The annotation tool url will be http://localhost:9000/atool. A user with a login token 000000 will be created by default.
From Source
This is a Play 2.6 / Scala.js application.
You need to have sbt installed.
After cloning, cd
into the directory and run sbt
there.
After sbt has finished its initialization (the first one will download lots of files and can take ~1h)
use run
in the sbt console to launch the demo locally.
Juman++ is configured by play/conf/application.conf
file.
It is a HOCON file.
It's scope is akane.jumanpp
and it has subitems:
executable
: defaults to jumanppresources
: path to jumanpp resources (model). Empty by default.lattice
: size of output lattice. Defaults to 1: only best variant.args
: other arguments as a list[]