Giter VIP home page Giter VIP logo

sort_by_zero_shot's Introduction

sort_by_zero_shot

这是利用rpc写的一个后端程序,输入标签和topk,然后利用zero_shot_classification得到排序top_k的句子

json文件即为我们的数据集

使用说明

输入: 用户输入标签和想要看到句子个数 输出: 句子和它对应的置信度 我将其保存为json文件

首先启动rpc_server.py程序,这个程序可以提取加载模型 然后利用rpc_client.py输入两个变量,最后将结果保存为json文件 此外zero_shot.json为我们的数据集,在zero_shot.py脚本中需要改一下加载它的路径

sort_by_zero_shot's People

Contributors

huhaobangbangbang avatar

Watchers

 avatar

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.