模型:

JoshELambert/foreignfishers

英文

/var/folders/8x/qp375g154zg3h3ktpt_8tyqw0000gn/T/tmpjne_5dj1/JoshELambert/foreignfishers

这是一个可用于文本分类的模型。该模型采用了一种高效的少样本学习技术,包括:

  • 使用对比学习对 Sentence Transformer 进行微调。
  • 使用来自微调的Sentence Transformer的特征训练分类头。
  • 用法

    要将此模型用于推断,请先安装SetFit库:

    python -m pip install setfit
    

    然后可以按如下方式运行推断:

    from setfit import SetFitModel
    
    # Download from Hub and run inference
    model = SetFitModel.from_pretrained("/var/folders/8x/qp375g154zg3h3ktpt_8tyqw0000gn/T/tmpjne_5dj1/JoshELambert/foreignfishers")
    # Run inference
    preds = model(["i loved the spiderman movie!", "pineapple on pizza is the worst 🤮"])
    

    BibTeX条目和引用信息

    @article{https://doi.org/10.48550/arxiv.2209.11055,
    doi = {10.48550/ARXIV.2209.11055},
    url = {https://arxiv.org/abs/2209.11055},
    author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
    keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
    title = {Efficient Few-Shot Learning Without Prompts},
    publisher = {arXiv},
    year = {2022},
    copyright = {Creative Commons Attribution 4.0 International}
    }