GithubHelp home page GithubHelp logo

semi_supervised-formalitystyletransfer's Introduction

Semi_Supervised FormalityStyleTransfer(Ebrahimi's Thesis)

Dataset

Training Dataset

  • Parallel data: Our dataset is Digikala's Comments dataset which is a persian dataset, but after preprocessing we created an artificial augmented parallel informal-formal by a rulebased informal to formal model, therefore our main dataset contains two aligned text files(informal and formal).
  • Non_parallel data: this training dataset which is all informal sentences, collected from twitter. this dataset is about 200k informal sentences.

Evaluation Dataset

Our evaluation dataset include 3 diffferent domain testset Shekaste testset: this is recently published is an evaluation informal-formal dataset and its sentences has various topics. Digikala testset: this is the comments of the digikala which is not a part of training dataset. Rule-base testset: this is maily poem, story and differrent kind of informal sentences

Note: We also provide data in this link below.

Dataset Folder: https://drive.google.com/drive/folders/10pUkmzNMabmIfKZ_V3DVfPPErEQSmezp?usp=sharing

Preparation

first step: Pre-training a style classifiers

python classifier/textcnn.py -dataset digi

2nd step: Pre-train language models for the language model filter

Note: We also provide already pretrained checkpoints in this link below.

3rd step: Training

sh sup.sh # supervised training
sh semi.sh  # semi-supervised training

Model Outputs

The outputs of our FST is provided in ./output.

Test

For testing this model, the checkpoints are provided in the link below.

Checkpoints Folder: https://drive.google.com/drive/folders/1l6bAt-5_Abi6NIkQSfjuqhKd8nl9572Y?usp=sharing

semi_supervised-formalitystyletransfer's People

Contributors

s-fatemeh-ebrahimi avatar

Stargazers

 avatar

Watchers

Sadra Sabouri 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.