Git Product home page Git Product logo

shorttextmatch's Introduction

文本匹配

依赖

pip install transformers==4.5.1
export task=QYTM
export model_name=RE2
CUDA_VISIBLE_DEVICES=1 python src/DL_model/${model_name}/main.py \
  --task ${task} \
  --model_name ${model_name} \
  --output_dir ./output/${task}_${model_name}_20211007 \
  --tensorboardx_path  ./output/logs/runs/${task}_${model_name}_20211007  \
  --train_path ./datasets/${task}/train.csv \
  --dev_path ./datasets/${task}/dev.csv \
  --test_path ./datasets/${task}/test.csv \
  --label_file_level_dir ./datasets/${task}/labels_level.txt \
  --label2freq_level_dir ./datasets/${task}/label2freq_level.json \
  --vocab_file ./resources/word2vec/vocab.txt \
  --w2v_file ./resources/word2vec/token_vec_300.bin \
  --train_batch_size 256 \
  --eval_batch_siz 256 \
  --do_train \
  --do_eval \
  --do_predict \
  --num_train_epochs 50
model LCQMC(f1-score)
DSSM 0.7114
ABCNN 0.7743
BIMPM 0.8590
DecomposableAttention 0.7526
ESIM 0.8573
RE2 0.8182
SiaGRU 0.8302
Bert 0.8817
RoBerta 0.8897
XlNet 0.7828
ELECTRA 1
DistilBert ??
AlBert ??
NEZHA 1

shorttextmatch's People

Contributors

daiyizheng avatar

Stargazers

杜杜里 avatar xinyizhou avatar  avatar wjd avatar lqy avatar

Watchers

James Cloos avatar  avatar

Forkers

trellixvulnteam

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.