Git Product home page Git Product logo

Comments (2)

zzhangpurdue avatar zzhangpurdue commented on July 18, 2024

分词目前还没有支持batch inference,
我们会把这个能力尽快集成到分词以及相关模型上去。

另外,
我的pipeline整体都支持list格式的输入,可以节省你部分编码时间,具体例子如下,
`
from modelscope.pipelines import pipeline
from modelscope.utils.constant import Tasks

pipeline_ins = pipeline('word-segmentation', 'damo/nlp_structbert_word-segmentation_chinese-base')
result = pipeline_ins(["今天天气不错", "适合出去游玩"])
print (result)
#[{'output': '今天 天气 不错'}, {'output': '适合 出去 游玩'}]
`

from modelscope.

xpjandy avatar xpjandy commented on July 18, 2024

另外,我们会开放高效率版本的分词配套工具,敬请期待

from modelscope.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.