Comments (1)
Hey,
I am not quite sure whether I could just added these other attributes as left, right file, correct me if I am wrong:
Humm, I don't think my context-wise code suites your case. In my code, all contexts (left, right and middle) look up word embeddings, but in your case, you combine text input ("The fox chase a bunny") with numerical features ("23 , 24000") and categorical features ("high school"). And of course numerical and categorical features don't need word embeddings. So you can't reuse my code, you have to re-implement the layer for your non-textual features, I guess.
BUT how abount source.att? How to decide the values between 0.0 and 1.0?
Yeah, this is a problem, how you get the attention. I derived this from some manual annotation (see: data/gold_annotation.tsv
, conversion into 0-1 value: score_reliability
function).
But actually, attention values should be jointly learned during training, I mean, should not be given in advance. My attention implementation is fixed, just adds extra info to the loss. So, there are two options: (1) use some fixed manual annotation (like my code, which is not so good...) or (2) implement an attention layer to jointly learn the values (I don't have code for that, but it is desired in the actual sense of "attention")
Sorry, I can't help you for this topics...
from cnn-re-tf.
Related Issues (8)
- [Help] How do I specify the positive class? How to output the prediction results? HOT 5
- How do you create the entities.pickle file? HOT 4
- STANFORD NER HOT 7
- Dataset format and input format for new predictions HOT 4
- distant supervision script exists with error HOT 2
- Did you optimize F1 specifically
- TypeError: object of type 'NoneType' has no len() with #3 settings
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 cnn-re-tf.