Skip to content

Commit

Permalink
fix typo in export (#1024)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenmoneygithub authored May 5, 2023
1 parent ee2015a commit 1aa01c8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion keras_nlp/metrics/rouge_n.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from keras_nlp.metrics.rouge_base import RougeBase


@keras_nlp_export("keras_nlp.metrics.RogueN")
@keras_nlp_export("keras_nlp.metrics.RougeN")
class RougeN(RougeBase):
"""ROUGE-N metric.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from keras_nlp.utils.keras_utils import pack_x_y_sample_weight


@keras_nlp_export("keras_nlp.models.DistilBertMaskedLMPrerprocessor")
@keras_nlp_export("keras_nlp.models.DistilBertMaskedLMPreprocessor")
class DistilBertMaskedLMPreprocessor(DistilBertPreprocessor):
"""DistilBERT preprocessing for the masked language modeling task.
Expand Down
2 changes: 1 addition & 1 deletion keras_nlp/models/roberta/roberta_backbone.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def roberta_kernel_initializer(stddev=0.02):
return keras.initializers.TruncatedNormal(stddev=stddev)


@keras_nlp_export("keras_nlp.models.RobertBackbone")
@keras_nlp_export("keras_nlp.models.RobertaBackbone")
class RobertaBackbone(Backbone):
"""A RoBERTa encoder network.
Expand Down
3 changes: 3 additions & 0 deletions keras_nlp/tokenizers/sentence_piece_tokenizer_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
except ImportError:
spm = None

from keras_nlp.api_export import keras_nlp_export


@keras_nlp_export("keras_nlp.tokenizers.compute_sentence_piece_proto")
def compute_sentence_piece_proto(
data,
vocabulary_size,
Expand Down
2 changes: 2 additions & 0 deletions keras_nlp/tokenizers/word_piece_tokenizer_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

import tensorflow as tf

from keras_nlp.api_export import keras_nlp_export
from keras_nlp.tokenizers.word_piece_tokenizer import pretokenize
from keras_nlp.utils.tf_utils import assert_tf_text_installed

Expand All @@ -26,6 +27,7 @@
learner = None


@keras_nlp_export("keras_nlp.tokenizers.compute_word_piece_vocabulary")
def compute_word_piece_vocabulary(
data,
vocabulary_size,
Expand Down

0 comments on commit 1aa01c8

Please sign in to comment.