Navigation

    Gpushare.com

    • Register
    • Login
    • Search
    • Popular
    • Categories
    • Recent
    • Tags

    【1】 transformers 简介

    技术交流
    1
    1
    245
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 188****7632
      188****7632 last edited by

      transformers 是 hugging face的库,包含很多预训练模型
      本节介绍安装方式及pipeLine 以及相关模型
      官方推荐两种安装方式
      !pip install transformers
      !pip install transformers[sentencepiece]
      将任务分为如下种类

      通过pipeline,我们可以做情感分析

      当前pipeline可以做的任务有

      做零次分类

      做命名实体识别

      还有很多任务可以做,不一一列举了

      最后模型可分为这几类

      参考:
      https://huggingface.co/course/chapter0?fw=pt 0章和第1章

      1 Reply Last reply Reply Quote 2
      • First post
        Last post