We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b74ad41 commit a457480Copy full SHA for a457480
tensorflow_text/python/ops/__init__.py
@@ -15,7 +15,11 @@
15
16
"""Various TensorFlow ops related to text-processing."""
17
18
-from tensorflow.python.ops.ragged import ragged_ops as _ragged_ops
+# pylint: disable=g-import-not-at-top,g-statement-before-imports
19
+try:
20
+ from tensorflow.python.ops.ragged import ragged_ops as _ragged_ops
21
+except ImportError:
22
+ pass
23
from tensorflow_text.python.ops.bert_tokenizer import BertTokenizer
24
from tensorflow_text.python.ops.create_feature_bitmask_op import create_feature_bitmask
25
from tensorflow_text.python.ops.greedy_constrained_sequence_op import greedy_constrained_sequence
0 commit comments