遇见数据集

CVPR_2024_Papers

收藏
魔搭社区2026-10-31 更新2026-11-01 收录
官方服务:

资源简介:

```python def remove_ref_tags_except_image_from_sample(sample): """ cleanup the deepseek exrtra tags """ lines = sample["text"].split('\n') filtered_lines = [] for line in lines: # Check if line contains any <|ref|> tag if '<|ref|>' in line: # Keep the line only if it contains <|ref|>image<|/ref|> if '<|ref|>image<|/ref|>' in line: filtered_lines.append(line) else: # Keep lines without <|ref|> tags filtered_lines.append(line) out = '\n'.join(filtered_lines) return {'text':out.strip()} ```

提供机构:
maas
创建时间:
2026-07-30
二维码
社区交流群
二维码
科研交流群
商业服务