Skip to content

Instantly share code, notes, and snippets.

@hppRC
Created January 4, 2023 07:07
Show Gist options
  • Save hppRC/e99bc9b4951b70993e6f4a8ffe32f94a to your computer and use it in GitHub Desktop.
Save hppRC/e99bc9b4951b70993e6f4a8ffe32f94a to your computer and use it in GitHub Desktop.
Juman++ V2のインストール手順
ORIGIN_DIR=$(pwd)
JUMANPP_DIR="$HOME/.local/share/jumanpp"
mkdir -p $JUMANPP_DIR
cd $JUMANPP_DIR
curl -LO https://github.com/ku-nlp/jumanpp/releases/download/v2.0.0-rc3/jumanpp-2.0.0-rc3.tar.xz
tar -xf jumanpp-2.0.0-rc3.tar.xz
cd jumanpp-2.0.0-rc3
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$JUMANPP_DIR -DJPP_DEFAULT_CONFIG_DIR=$JUMANPP_DIR
make install -j16
ln -s "$JUMANPP_DIR/bin/jumanpp" "$HOME/.local/bin/jumanpp"
cd $ORIGIN_DIR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment