Code Monkey home page Code Monkey logo

wentiansearch's Introduction

“阿里灵杰”问天引擎电商搜索算法赛 SimCSE版本BaseLine

使用SimCSE有监督版本的问天搜索算法赛BaseLine,无困难负样本。

比赛地址:https://tianchi.aliyun.com/competition/entrance/531946/introduction

文件构成

1.data_process.py --- 数据预处理(因为给出的数据列数发生过改变,这里可能要注意一下编号问题 需要对应数据修改一下)

2.train.py --- 训练主程序

3.get_embedding.py --- 生成对应的embedding文件

4.tar.sh 压缩脚本

run_sup_example.sh 训练脚本

./models.py 模型文件

./trainers.py 训练主程序

./data/* 训练数据

执行顺序

1.data_precess.py ---> run_sup_example.sh ---> 3.get_embedding.py ---> 4.tar.sh

References

[1] SimCSE: Simple Contrastive Learning of Sentence Embeddings Tianyu Gao*, Xingcheng Yao*, Danqi Chen. In EMNLP 2021

[2] https://github.com/princeton-nlp/SimCSE

wentiansearch's People

Contributors

enze5088 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.