This version of the API is deprecated.
See group.relatedGroups for the current version of this method.context.getContextSimilarity
Get how similar (like) an article is to a list of contexts.
Request Parameters
| Corpus ID | int (required) |
The corpus id for where the article you want get similarity for exists.
| Article ID | int (required) |
The article id for your source article.
| Against Context Ids | Java Formatted ArrayList (required) |
A java formatted ArrayList containing all context ids you want to compare against. See User Notes for how to do a Java formatted ArrayList.
| Min Threshold | decimal |
Threshold for how like answers must be. E.g. 0.8 is 80 % similar.
| Limit | int |
Number of max answers.
| Wait | int (default: 0) |
How long you maximum want to wait for an answer before shutting down the connection. (Max 120 sec) If set to 0 then it will shutdown instantly if no results already exists.
Response Parameters
| contextId | int |
The result context id.
| semanticResultValue | decimal |
A value between 0-1 for how semantically like the source article are compared to the context.
Notes
A Java formatted ArrayList looks like this:
{"javaClass":"java.util.ArrayList","list":[1,34,891]}
Basically you need to send a JSON object looking like the one above, but replace the numbers with your article ids.