Skip to content

Commit cea421a

Browse files
committed
Add the transformers library, along with spacy and ftfy
1 parent 7baf5dc commit cea421a

File tree

3 files changed

+27
-14
lines changed

3 files changed

+27
-14
lines changed

environment-windows.yml

+17-14
Original file line numberDiff line numberDiff line change
@@ -27,27 +27,30 @@ dependencies:
2727
- scikit-learn=0.22
2828
- scipy=1.3.1
2929
- tqdm=4.40.0
30-
- tensorboard=2.0.0
31-
- tensorflow=2.0.0 # or tensorflow-gpu if gpu
32-
- tensorflow-datasets=1.2.0
33-
- tensorflow-estimator=2.0.0
34-
- tensorflow-hub=0.7.0
35-
- tensorflow-probability=0.7
3630
- wheel
3731
- widgetsnbextension=3.5.1
3832
- pip:
3933
#- atari-py==0.2.6 # NOT ON WINDOWS YET
34+
- ftfy==5.7
4035
- gym==0.15.4
4136
- opencv-python==4.1.2.30
4237
- psutil==5.6.7
4338
- pyglet==1.3.2
44-
#- tensorflow-addons==0.6.0 # NOT ON WINDOWS YET
45-
#- tensorflow-data-validation==0.15.0 # NOT ON WINDOWS YET
46-
#- tensorflow-metadata==0.15.1 # NOT ON WINDOWS YET
47-
#- tensorflow-model-analysis==0.15.4 # NOT ON WINDOWS YET
48-
- tensorflow-serving-api==2.0.0 # or tensorflow-serving-api-gpu if gpu
49-
#- tensorflow-transform==0.15.0 # NOT ON WINDOWS YET
50-
- tf-agents==0.3.0rc0
51-
#- tfx==0.15.0 # NOT ON WINDOWS YET
39+
- spacy==2.2.4
40+
- tensorboard==2.1.1
41+
#- tensorflow-addons==0.8.3 # NOT ON WINDOWS YET
42+
#- tensorflow-data-validation==0.21.5 # NOT ON WINDOWS YET
43+
- tensorflow-datasets==2.1.0
44+
- tensorflow-estimator==2.1.0
45+
- tensorflow-hub==0.7.0
46+
#- tensorflow-metadata==0.21.1 # NOT ON WINDOWS YET
47+
#- tensorflow-model-analysis==0.21.6 # NOT ON WINDOWS YET
48+
- tensorflow-probability==0.9.0
49+
- tensorflow-serving-api==2.1.0 # or tensorflow-serving-api-gpu if gpu
50+
#- tensorflow-transform==0.21.2 # NOT ON WINDOWS YET
51+
- tensorflow==2.1.0 # or tensorflow-gpu if gpu
52+
- tf-agents==0.3.0
53+
#- tfx==0.21.2 # NOT ON WINDOWS YET
54+
- transformers==2.8.0
5255
- urlextract==0.13.0
5356
#- pyvirtualdisplay # add if on headless server

environment.yml

+3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ dependencies:
3434
- widgetsnbextension=3.5
3535
- pip:
3636
- atari-py==0.2.6
37+
- ftfy==5.7
3738
- gast==0.2.2
3839
- gym==0.17.1
3940
- opencv-python==4.2.0.32
41+
- spacy==2.2.4
4042
- tensorboard==2.1.1
4143
- tensorflow-addons==0.8.3
4244
- tensorflow-data-validation==0.21.5
@@ -51,4 +53,5 @@ dependencies:
5153
- tensorflow==2.1.0 # or tensorflow-gpu if gpu
5254
- tf-agents==0.3.0
5355
- tfx==0.21.2
56+
- transformers==2.8.0
5457
- urlextract==0.14.0

requirements.txt

+7
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ scikit-learn==0.22
1616
# Optional: the XGBoost library is only used in chapter 7
1717
xgboost==1.0.2
1818

19+
# Optional: the transformers library is only using in chapter 16
20+
transformers==2.8.0
21+
1922
##### TensorFlow-related packages
2023

2124
# If you have a TF-compatible GPU and you want to enable GPU support, then
@@ -89,6 +92,10 @@ numexpr==2.7.1
8992
nltk==3.4.5
9093
urlextract==0.14.0
9194

95+
# Optional: these libraries are only used in chapter 16
96+
spacy==2.2.4
97+
ftfy==5.7
98+
9299
# Optional: tqdm displays nice progress bars, ipywidgets for tqdm's notebook support
93100
tqdm==4.43.0
94101
ipywidgets==7.5.1

0 commit comments

Comments
 (0)