You've already forked DataMate
算子将抽取与落盘固定到流程中 (#134)
* feature: 将抽取动作移到每一个算子中 * feature: 落盘算子改为默认执行 * feature: 优化前端展示 * feature: 使用pyproject管理依赖
This commit is contained in:
@@ -61,6 +61,7 @@ class TextToWord(Mapper):
|
||||
def execute(self, sample: Dict[str, Any]) -> Dict[str, Any]:
|
||||
"""将文本信息转换为docx文件流"""
|
||||
start = time.time()
|
||||
self.read_file_first(sample)
|
||||
sample[self.data_key] = self._txt_to_docx(sample[self.text_key]) # 将文字转换为word字符串流
|
||||
sample[self.text_key] = ""
|
||||
sample["target_type"] = "docx"
|
||||
|
||||
Reference in New Issue
Block a user