Skip to content

Code for "A Neural Transition-based Model for Nested Mention Recognition"

License

Notifications You must be signed in to change notification settings

berlino/nest-trans-em18

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Implementation of Neural Transition-based Model for Nested Mention Recognition

We provide sample sentences from GENIA for illustration. Requirement: PyTorch (tested on 0.4), Python(v3)

Setup

  1. Put the embedding file glove.6B.100d.txt into the folder of embeddings (or directly downlaod from here)
  2. run the gen_data.py to generate the processed data for training, they will be defaultly placed at the ./data folder
  3. run train.py to start training

We already generate the processed data for our samples. So you can skip the first and second steps if you only want to test our sample sentences.

Configuration

Configurations of the model and training are in config.py

Some important configurations:

  • if_gpu: whether to use GPU for training
  • input_dropout: whether to add dropout layer
  • if_pretrained: whether to using Glove pretrained embeddings

About

Code for "A Neural Transition-based Model for Nested Mention Recognition"

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages