SkillAgentSearch skills...

Code4sc

code for sentence compression

Install / Use

/learn @code4conference/Code4sc
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Code for Sentence Compression

We describe the steps in detail. If any points unclear, please contact authors by emailing code4conference@gmail.com .

Step 1: Training a bi-directional neural language model.

Take an example, use "BOS This is an anonymous Github EOS" to predict "This is an anonymous Github". (see RNN.py)

Step 2: Pre-training a policy network

Pre-training a sequence labeling neural network as policy network using labels yielded by the unsupervised method, Integer Linear Programming.

Step 3: Reinforcment Learning

Start with the pre-trained policy instead of random policy, and take pre-trained language model as reward to fine tune the policy network.

View on GitHub
GitHub Stars20
CategoryDevelopment
Updated4y ago
Forks9

Languages

Python

Security Score

60/100

Audited on Nov 15, 2021

No findings