You've already forked DataMate
补充modal范围 (#165)
This commit is contained in:
@@ -13,7 +13,7 @@ language: 'python'
|
||||
vendor: 'huawei'
|
||||
raw_id: 'TestMapper'
|
||||
version: '1.0.0'
|
||||
modal: 'text'
|
||||
modal: 'text' # text/image/audio/video/multimodal
|
||||
inputs: 'text'
|
||||
outputs: 'text'
|
||||
```
|
||||
@@ -35,7 +35,7 @@ class TestMapper(Mapper):
|
||||
sample[self.text_key] += "\n新增的数据"
|
||||
return sample
|
||||
|
||||
|
||||
|
||||
# Filter用于过滤和选择性保留数据,使用时将需要过滤的数据的text或data置为空值
|
||||
from datamate.core.base_op import Filter
|
||||
|
||||
@@ -86,4 +86,4 @@ from datamate.core.base_op import OPERATORS
|
||||
OPERATORS.register_module(module_name='TestMapper',
|
||||
module_path="ops.user.test_operator.process")
|
||||
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user