Description Usage Arguments Details Value
Computes the Jaccard index between two trees.
1 | jaccard_treeharp(th1, th2, weighted = FALSE)
|
th1 |
A TreeHarp object. |
th2 |
A TreeHarp object. |
weighted |
A logical value, indicating if the weighted Jaccard similarity should be computed. |
The unweighted form is just the cardinality of the intersection of the two sets of tokens, divided by the union of the two sets.
The weighted form is described on the WIkipedia page: https://en.wikipedia.org/wiki/Jaccard_index#Weighted_Jaccard_similarity_and_distance
A real number between 0 and 1.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.