Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

zwkatgithub/HGL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

1 Commit

Repository files navigation

HGL

Environment

Python =3.6.9, others in requirements.txt, you can run

pip install -r requirements.txt

Config

Please modify the config.ini file in configs dir. (Note that GPU memory: at least 24 GB)

[DEFAULT]
pretrained_model = /share/model/bert/cased_L-24_H-1024_A-16 # should be replaced with yours
model_name = hyper
model_path = model/hyper_org
lr = 3e-6
alpha = 1.0
beta = 0.05
type = ORG
train_dataset = ./data/train.data
batch_size = 150
T = 1.0
hidden_size = 200
cuda_device = 7
num_epochs = 50
seed = 0
do_train = yes
do_eval = yes
[token_indexers]
use_starting_offsets = yes
do_lowercase = no

Run

python train.py --config-file ./configs/config.ini

The result will be saved in model dir.

About

This repo contains our code and pre-processed distantly labeled data for paper Denoising Distantly Supervised Named Entity Recognition via a Hypergeometric Probabilistic Model (AAAI2021)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /