File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -197,7 +197,8 @@ RUN pip install pysal \
197197 pip install -f https://h2o-release.s3.amazonaws.com/h2o/latest_stable_Py.html h2o \
198198 "tensorflow-gcs-config<=${TENSORFLOW_VERSION}" \
199199 tensorflow-addons==0.17.1 \
200- tensorflow_decision_forests==0.2.7 && \
200+ tensorflow_decision_forests==0.2.7 \
201+ tensorflow_text==2.9.0 && \
201202 /tmp/clean-layer.sh
202203
203204RUN apt-get install -y libfreetype6-dev && \
Original file line number Diff line number Diff line change 1+ import unittest
2+
3+ import tensorflow_text as tf_text
4+
5+
6+ class TestTensorflowText (unittest .TestCase ):
7+ def test_tokenizer (self ):
8+ word_tokenizer = tf_text .WhitespaceTokenizer ()
9+
10+ tokens = word_tokenizer .tokenize ("I love Kaggle!" )
11+
12+ self .assertEqual ((3 ,), tokens .shape )
You can’t perform that action at this time.
0 commit comments