Comments (3)
Hi,
This is indeed not in the words, this is supposed to be a tag. I don't see where this can happen though. Can you provide the complete traceback error?
from tagger.
Hi,
I can finally understand the problem and solve it. This is because of the lack of PRT label in the dev or test set. I just copy a small part of training and testing set in the conll2002 data so this problem happened.
Thank you for your responding.
Regards.
from tagger.
Is there a workaround if a tag does not occur in both training and test/dev set?
I am using k-fold crossvalidation to split my small dataset and there is 1 fold where all occurrences of a certain low-frequent tag occur only in the test set and not in the training set.
The error I get looks like this:
Found 8 unique named entity tags
Traceback (most recent call last):
File "train.py", line 191, in
test_sentences, word_to_id, char_to_id, tag_to_id, lower
File "./../tagger/loader.py", line 146, in prepare_dataset
tags = [tag_to_id[w[-1]] for w in s]
KeyError: u'B-lat_fam'
Do you have any suggestions @glample ?
Thank you so much.
from tagger.
Related Issues (20)
- utils.py issue line 303 list index out of range HOT 8
- Why my program goes into infinite loop? HOT 2
- Cuda and Theano Version HOT 4
- Can you
- Can my Chinese data be used in this program?(character-level) HOT 3
- Which tokenizer did you use? HOT 11
- Script for training embeddings HOT 9
- IOError "No such file or directory: './evaluation/temp/eval.1181043.scores " HOT 3
- SGD x Adam HOT 2
- Are you planning to release models in German, Spanish and Dutch as well? HOT 1
- Confidence score for the predicted entity HOT 4
- Data size and decoding time
- Pretrained word embedding HOT 5
- Confusion about lable conversion. HOT 2
- Inconsistent conversion for IOBES to IOB HOT 1
- Token level or Entity level? HOT 2
- Equations of LSTM
- transition scores HOT 1
- How to set the parameters of a small dataset? HOT 1
- . 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 tagger.