Comments (6)
Hi,
Several days ago, we reimplemented Lample's and Xuezhe's study, and our implementations achieve roughly the same performance with their reported score (although slightly worse than Xuezhe). However, we're currently fully occupied by some potential paper submissions and dont have time to clean up and release our codes. I guess I can find some time to release those codes in 20 days.
And for your own implementation, i'm not sure why you cannot replicate...
I would let this issue open, and after i released the code, i would let you know.
Good luck and hope i can help you :-)
from lm-lstm-crf.
Thank you. I mean by the code you guys provided. I did not reimplement them in pytorch. :)
Good luck!
from lm-lstm-crf.
Hi, can I ask what is the intuition behind the function construct_bucket_vb
for the labels in util.py?
More specifically, what is this line for? buckets[idx][1].append([label[ind] * label_size + label[ind + 1] for ind in range(0, cur_len)] + [label[cur_len] * label_size + pad_label] + [pad_label * label_size + pad_label] * (thresholds[idx] - cur_len_1))
Thanks!
from lm-lstm-crf.
This line is used for label padding, specifically, label padding for CRF (with bucket).
CRF models the transition of states instead of states themselves.
E.g., in Eqs. 1 of our paper, the potential function is calculated based on a (y_{i-1}, y_i) pair.
Here, we try to encode this pair into a single number (label[ind] * label_size + label[ind + 1]).
For other parts of this line, they are just doing padding.
from lm-lstm-crf.
Hi @cosmozhang , I have implemented both Lample and Xuezhe Ma's structure using PyTorch PyTorchSeqLabel .
The results are comparable with both of them, all the results are listed and compared in the repository.
The CoNLL03 English NER data is not well generalized, which means there is a big difference between dev and test data. The F1-measure in the test data is not quite stable under different seed number, you may try different seed if the code does not work well.
from lm-lstm-crf.
@jiesutd I also implemented Lample's structure using pytorch last year and got similar results. Thank you.
from lm-lstm-crf.
Related Issues (20)
- train_w.py Error HOT 2
- Mismatch of performance between this repository and the paper HOT 6
- How can I include handcrafted features in NER ?
- evaluator.calc_score HOT 3
- where is the dictory './data'
- AttributeError: module 'torch._C' has no attribute '_cuda_setDevice' HOT 3
- KeyError in predictor.py class predict HOT 1
- Question about POS performance HOT 2
- How to deal with sentences with different lengths?
- train_w.py Error, TypeError: can't convert np.ndarray of type numpy.object_ HOT 2
- Is word level bi-lstm reflected in the code ? HOT 1
- About the score given a sequence and a target
- anyone can update to pytorch1.0
- Missing "eval_batch" in train_w.py line 163 HOT 1
- RuntimeError: HOT 1
- dropout
- RuntimeError: expand(torch.LongTensor{[50, 1]}, size=[50]): the number of sizes provided (1) must be greater or equal to the number of dimensions in the tensor (2)
- How do you tune the model to get a large # of keywords outputted by the CRF layer? HOT 1
- Incorrect Precision Output for test_rec HOT 1
- Line 530 in utils.py is too slow with huge datasets HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lm-lstm-crf.