Open luxiaobai007 opened 1 year ago
def word_segment(): word_segment_zh = pipeline(task=Tasks.word_segmentation, model='baichuan-inc/baichuan-7B', model_revision='v1.0.2') result = word_segment_zh("结婚的和尚未结婚的") print(result)
可以提供一下关于分词的示例代码吗
Required prerequisites
Questions
可以提供一下关于分词的示例代码吗
Checklist