GithubHelp home page GithubHelp logo

bert-bc's Introduction

BERT-BC

BERT-BC: A Unified Alignment and Interaction Model over Hierarchical BERT for Response Selection

  • Unzip the data to the designated directory, Data_processing.py data_preprocess.py for converting data to json format, fine_turning_preprocess.py for processing fine-tuning data, tokenieze_post_train.py for processing post-train dat. Different data sets can be handled by modifying the data_type parameter.
  • Data_processing.py
  • fine_turning_preprocess.py
  • tokenize_post_train.py

dataset

Ubuntu dataset: https://www.dropbox.com/s/2fdn26rj6h9bpvl/ubuntu_data.zip

Douban dataset: https://www.dropbox.com/s/90t0qtji9ow20ca/DoubanConversaionCorpus.zip?dl=0

E Commerce dataset: https://drive.google.com/file/d/154J-neBo20ABtSmJDvm7DK0eTuieAuvw/view

preprocessed data: https://github.com/hanjanghoon/BERT_FP

post-pretrain

Download initial checkpoint from https://huggingface.co/models

python -u pretrain_final.py --model_class du_bert_pretrain --batch_size 32 --task e_commerce --is_training --epochs 15
python -u pretrain_final.py --model_class du_bert_pretrain --batch_size 32 --task douban --is_training --epochs 13
python -u pretrain_final.py --model_class du_bert_pretrain --batch_size 32 --task ubuntu --is_training --epochs 8

fine-turning

python -u bert_fineturning_cul.py --model_class du_bert_pretrain --batch_size 32 --task e_commerce --learning_rate 1e-6  --epochs 10 --is_training
python -u bert_fineturning_cul.py --model_class du_bert_pretrain --batch_size 32 --task douban --learning_rate 2e-7 --epochs 5 --is_training
python -u bert_fineturning_cul.py --model_class du_bert_pretrain --batch_size 32 --task ubuntu --learning_rate 1e-6  --epochs 3 --is_training

bert-bc's People

Contributors

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