Skip to content

Commit

Permalink
fix: fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
hoel-bagard committed Jan 31, 2024
1 parent 518b69e commit 5ee5f57
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Literal

from tensorflow import _TensorCompatible
from tensorflow._aliases import TensorCompatible
from tensorflow.keras.layers.preprocessing.index_lookup import IndexLookup

class StringLookup(IndexLookup):
Expand All @@ -10,8 +10,8 @@ class StringLookup(IndexLookup):
num_oov_indices: int = 1,
mask_token: str | None = None,
oov_token: str = "[UNK]",
vocabulary: str | None | _TensorCompatible = None,
idf_weights: _TensorCompatible | None = None,
vocabulary: str | None | TensorCompatible = None,
idf_weights: TensorCompatible | None = None,
encoding: str = "utf-8",
invert: bool = False,
output_mode: Literal["int", "count", "multi_hot", "one_hot", "tf_idf"] = "int",
Expand All @@ -26,9 +26,9 @@ class IntegerLookup(IndexLookup):
num_oov_indices: int = 1,
mask_token: int | None = None,
oov_token: int = -1,
vocabulary: str | None | _TensorCompatible = None,
vocabulary: str | None | TensorCompatible = None,
vocabulary_dtype: Literal["int64", "int32"] = "int64",
idf_weights: _TensorCompatible | None = None,
idf_weights: TensorCompatible | None = None,
invert: bool = False,
output_mode: Literal["int", "count", "multi_hot", "one_hot", "tf_idf"] = "int",
sparse: bool = False,
Expand Down

0 comments on commit 5ee5f57

Please sign in to comment.