Giter VIP home page Giter VIP logo

daci's Introduction

Dependency:

pytorch : Version 0.2.0 tqdm : Version 4.19.4 pyltp : Version: 0.1.9.1

Preparation:

  1. Download the ltp model version 3.3.1: https://pan.baidu.com/share/link?shareid=1988562907&uk=2738088569#list/path=%2F 'pos.model' 'cws.model' 'parser.model' is needed and Please put the model in path '/data/ltp_data/'
  2. Download the embedding data : https://pan.baidu.com/s/1GwX8lSjthxoveRfxB6k5Cw Please put it in the path "./data/embedding_weibo.data"

The code is runned in three steps:

  1. Use the script file in fold "generate_tree" to pre-precess the origin data. This step can get the depenency tree presentation of the origin data which is saved in the fold "train_tree","phone_tree" etc. command: sh gen_tree.sh We've already provided the output of the script in the zip file
  2. Run the train_source_model.sh to get the ".pkl" model file while can be used to to predict the origin domain data.
    command : sh ./script/train_source_model.sh
  3. Run the trans_train.sh to get the domain transfer answer. command : sh ./script/trans_train.sh

daci's People

Contributors

bibocai avatar

Stargazers

Jennie Gerhardt avatar Programmer avatar Ruibo Zhang avatar  avatar  avatar LI ZHENG avatar Statham avatar

Watchers

James Cloos avatar  avatar

Forkers

statham-stone

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.