这是利用rpc写的一个后端程序,输入标签和topk,然后利用zero_shot_classification得到排序top_k的句子
输入: 用户输入标签和想要看到句子个数 输出: 句子和它对应的置信度 我将其保存为json文件
首先启动rpc_server.py程序,这个程序可以提取加载模型 然后利用rpc_client.py输入两个变量,最后将结果保存为json文件 此外zero_shot.json为我们的数据集,在zero_shot.py脚本中需要改一下加载它的路径
这是利用rpc写的一个后端程序,输入标签和topk,然后利用zero_shot得到排序top_k的句子
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.