Skip to content

Commit

Permalink
Merge pull request #22 from gboeing/pkg
Browse files Browse the repository at this point in the history
add nltk_data and transformers
  • Loading branch information
gboeing authored Jan 9, 2024
2 parents 377094c + 51ae77c commit e5df827
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:
run: |
python -m ipykernel install --sys-prefix --name ppde642 --display-name "Python (ppde642)"
jupyter kernelspec list
ipython -c "from nltk.corpus import brown; print(brown.words())"
ipython -c "from transformers import pipeline; print(pipeline('sentiment-analysis')('I love you'))"
ipython -c "import osmnx; print('OSMnx version', osmnx.__version__)"
- name: Lint
Expand Down
2 changes: 2 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ dependencies:
# computer vision and NLP
- gensim
- nltk
- nltk_data
- pillow
- pytorch
- torchvision
- transformers

# others (unused)
# bokeh
Expand Down
2 changes: 2 additions & 0 deletions software/create-environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ python -m ipykernel install --sys-prefix --name $ENV --display-name "Python ($EN
mamba clean --all --yes --quiet --no-banner
mamba list --no-banner
jupyter kernelspec list
ipython -c "from nltk.corpus import brown; print(brown.words())"
ipython -c "from transformers import pipeline; print(pipeline('sentiment-analysis')('I love you'))"
ipython -c "import $PACKAGE; print('$PACKAGE version', $PACKAGE.__version__)"
2 changes: 2 additions & 0 deletions software/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ RUN mamba update --yes -c conda-forge --strict-channel-priority --no-banner -n b
mamba info --all && \
mamba list && \
jupyter kernelspec list && \
ipython -c "from nltk.corpus import brown; print(brown.words())" && \
ipython -c "from transformers import pipeline; print(pipeline('sentiment-analysis')('I love you'))" && \
ipython -c "import osmnx; print('OSMnx version', osmnx.__version__)"

# copy default jupyterlab settings, then set jupyter working directory to map to mounted volume
Expand Down
3 changes: 3 additions & 0 deletions software/docker/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ seaborn
scikit-learn
scipy
statsmodels
# computer vision and NLP
gensim
nltk
nltk_data
pillow
pytorch
torchvision
transformers

0 comments on commit e5df827

Please sign in to comment.