Git Product home page Git Product logo

dependency_parsing_tf's Introduction

dependency_parsing_tf

Tensorflow implementation of "A Fast and Accurate Dependency Parser using Neural Networks" https://cs.stanford.edu/~danqi/papers/emnlp2014.pdf

Tensorboard

tensorboard --logdir=path of model variables' folder

example: tensorboard --logdir=/dependency_parsing_tf/data/params_2017-09-18

Recent changes

  1. transition to tf 1.2
  2. added cube activation function (ref: paper)
  3. trainable word embeddings - initialized with 50d word2vec
  4. l2 loss for regularization (ref: paper)
  5. tensorboard visualization
  6. Dev UAS: 90.03 Test UAS: 90.42
  7. No functionality for LAS currently. it can be done with few changes in feature_extraction.py. I will try to add it.

training (exisiting dataset)

python parser_model.py

For new dataset

  1. Build new vocabulary & embedding matrices -> set "load_existing_dump=False" in parser_model.py. This will overwrite existing "data/dump" directory content
  2. python parser_model.py

training dataset

CONLL format

dependency_parsing_tf's People

Contributors

akjindal53244 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dependency_parsing_tf's Issues

Hi, I have some questions as follow.

1.have you use the feature of corresponding arc labels of words? I can't find this section in your code.
2.why you not use the cube activation function?
3.whether you have achieved the same performance as the paper(UAS test:92.0)
thank you !
from China : )

What dataset?

Hi,
Could you please tell me what dataset you use?
I just know the format is CONLL format but don't know where the dataset is from.
Sincerely,
Charlie

it seems uas can't use arc label as feature

when parsing dependency without label(such as nsub,nmod), We can't get the label of s0's left most child or the label of s0's child's child. So we can't use it as input.
In extract_for_current_state, it will get the left most child of s0 and get the label of this child. But for parsing without label, this information is not available.

How to use

Where is the model after training?
How to use this model to analyze a sentence?

How to convert original ptb data to dependency format data?

This is not like stanford basic dependencies format. What version do you use Stanford parser?
What version do you use Stanford POS tagger?
1 In _ ADP IN _ 5 case _ _
2 an _ DET DT _ 5 det _ _
3 Oct. _ PROPN NNP _ 5 compound _ _
4 19 _ NUM CD _ 5 nummod _ _
5 review _ NOUN NN _ 45 nmod _ _
6 of _ ADP IN _ 9 case _ _
7 _ PUNCT _ 9 punct _ _
8 The _ DET DT _ 9 det _ _
9 Misanthrope _ NOUN NN _ 5 nmod _ _
10 '' _ PUNCT '' _ 9 punct _ _
11 at _ ADP IN _ 15 case _ _
12 Chicago _ PROPN NNP _ 15 nmod:poss _ _

Datasets' name

Sorry to disturb you. But what is the name of the dataset used here?

Print out test results

Hi,
How can we print out the test results as conll files, currently it only created the model and evaluates it, but there is no result conll.

Thank you

Firat

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.