towhee
/
text-loader
copied
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Readme
Files and versions
16 lines
345 B
16 lines
345 B
from towhee.operator import PyOperator
|
|
|
|
|
|
class TextLoader(PyOperator):
|
|
"""
|
|
DefaultOperator for _input and _output nodes.
|
|
"""
|
|
|
|
def __init__(self):
|
|
#pylint: disable=useless-super-delegation
|
|
super().__init__()
|
|
|
|
def __call__(self, *args):
|
|
if len(args) == 1:
|
|
return args[0]
|
|
return args
|