Skip to content

Commit

Permalink
Update post installation steps
Browse files Browse the repository at this point in the history
Note: fugashi and transformers cannot be installed with a single pip
command due to a setup.py related issue on Ubuntu 24.10.

requirements.txt
setup/ibus-postinst-hiragana.in
  • Loading branch information
ShikiOkasaka committed Nov 10, 2024
1 parent 987f360 commit 1040dea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
PyGObject
packaging >= 20.9
fugashi[unidic-lite] == 1.3.3
dill == 0.3.9
transformers[torch] == 4.46.2
2 changes: 1 addition & 1 deletion setup/ibus-postinst-hiragana.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ mkdir -p $PKGDATAHOME
@PYTHON@ -m venv --system-site-packages $PKGDATAHOME/venv
source $PKGDATAHOME/venv/bin/activate
echo "Installing requirements"
python -m pip install unidic-lite==1.0.8
python -m pip install -r @prefix@/share/ibus-hiragana/requirements.txt
python -m pip install transformers[torch]==4.46.2
python <<EOF
from transformers import AutoModelForMaskedLM, AutoTokenizer
MODEL_NAME = 'cl-tohoku/bert-base-japanese-v3'
Expand Down

0 comments on commit 1040dea

Please sign in to comment.