Comments (3)
Not in any nicely documented format, sorry. But I can try to explain a bit:
When you call clf.predict, as for instance on this line, you get a list of the same length as the number of UserDocs passed at the input.
Each element of that list is a tuple of two items: (prop_posteriors, link_posteriors)
. The proposition posteriors encode the classified type of each proposition. The link posteriors show, for every possible link in the document, whether that support relation is predicted as true or false.
So for instance, for document i, you could iterate jointly over:
for (src, trg), prediction in zip(doc.link_to_prop, link_posteriors[i]):
...
And to go from proposition type posteriors to actual labels, you could use the label encoder that is part of the model: self.prop_encoder_.inverse_transform(prop_posteriors)
Hope this helps!
from marseille.
The output of experiments.predict_pretrained is a list of DocLabels (one for each document). Could you please explain the meaning of the links. I understand that every sentence/proposition is represented by a node and the links connect these nodes. But the ordering of these links is not apparent. Could you please clarify the ordering of these links, their directions, etc.
Thank you :)
from marseille.
look at the doc.link_to_prop
structure, it should answer your question.
In particular, if doc.link_to_prop[i] = [a, b]
, it means that the i
th link goes from a to b.
from marseille.
Related Issues (9)
- Unable to install dynet version 1.1
- Interrupted by signal 11:SIGSEGV HOT 12
- Error on preprocess cannot import StringIO HOT 2
- about dataset HOT 1
- KeyError: 'collapsed-ccprocessed-dependencies' HOT 2
- DeprecationWarning HOT 1
- Function missing in experiments.predict_pretrained HOT 2
- locating data and data-repository 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 marseille.