Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit ef1fcce

Browse files
dan-zhengcopybara-github
authored andcommitted
Update out-of-vocabulary error message to include the OOV token.
This facilitates debugging. PiperOrigin-RevId: 430848881
1 parent 2a33b15 commit ef1fcce

File tree

452 files changed

+456
-454
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

452 files changed

+456
-454
lines changed

tensor2tensor/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# coding=utf-8
2-
# Copyright 2021 The Tensor2Tensor Authors.
2+
# Copyright 2022 The Tensor2Tensor Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.

tensor2tensor/bin/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# coding=utf-8
2-
# Copyright 2021 The Tensor2Tensor Authors.
2+
# Copyright 2022 The Tensor2Tensor Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.

tensor2tensor/bin/build_vocab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# coding=utf-8
2-
# Copyright 2021 The Tensor2Tensor Authors.
2+
# Copyright 2022 The Tensor2Tensor Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.

tensor2tensor/bin/make_tf_configs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# coding=utf-8
2-
# Copyright 2021 The Tensor2Tensor Authors.
2+
# Copyright 2022 The Tensor2Tensor Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.

tensor2tensor/bin/t2t_attack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# coding=utf-8
2-
# Copyright 2021 The Tensor2Tensor Authors.
2+
# Copyright 2022 The Tensor2Tensor Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.

tensor2tensor/bin/t2t_avg_all.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# coding=utf-8
2-
# Copyright 2021 The Tensor2Tensor Authors.
2+
# Copyright 2022 The Tensor2Tensor Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.

tensor2tensor/bin/t2t_bleu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# coding=utf-8
2-
# Copyright 2021 The Tensor2Tensor Authors.
2+
# Copyright 2022 The Tensor2Tensor Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.

tensor2tensor/bin/t2t_datagen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# coding=utf-8
2-
# Copyright 2021 The Tensor2Tensor Authors.
2+
# Copyright 2022 The Tensor2Tensor Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.

tensor2tensor/bin/t2t_decoder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# coding=utf-8
2-
# Copyright 2021 The Tensor2Tensor Authors.
2+
# Copyright 2022 The Tensor2Tensor Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.

tensor2tensor/bin/t2t_distill.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# coding=utf-8
2-
# Copyright 2021 The Tensor2Tensor Authors.
2+
# Copyright 2022 The Tensor2Tensor Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)