Add hapi.text and corresponding unit test. (#24457)
* Add hapi.text and corresponding unit test. test=develop * Remove hapi.text apis' reuse parameter args for coverage. test=develop * Fix TransformerCell and TransformerBeamSearchDecoder example codes. test=develop * Fix example codes in hapi.text. test=develop * Add some apis in hapi.text into example code white list. test=develop * Fix example code of DynamicDecode in hapi.text. text=develop * Rename Model.self as model in test_text.py test=developrelease/2.0-alpha
parent
526a211774
commit
aa02e347bd
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,18 @@
|
||||
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
from . import text
|
||||
from .text import *
|
||||
|
||||
__all__ = text.__all__
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue