edu.ucla.sspace.graph.RelationSemantics Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sspace Show documentation
Show all versions of sspace Show documentation
The S-Space Package is a Natural Language Processing library for
distributional semantics representations. Distributional semantics
representations model the meaning of words, phrases, and sentences as high
dimensional vectors or probability distributions. The library includes common
algorithms such as Latent Semantic Analysis, Random Indexing, and Latent
Dirichlet Allocation. The S-Space package also includes software libraries
for matrices, vectors, graphs, and numerous clustering
algorithms.
The newest version!
package edu.ucla.sspace.graph;
import java.util.Set;
/**
* A functional interface for representing a method that can compare
* relationships between pairs of vertices.
*
* @see Multigraph
* @see TypedEdge
*/
public interface RelationSemantics extends TypeSemantics {
/**
* Returns the similarity of the relation (sets of edges) that connect two
* pairs of vertices.
*/
double similarity(Set extends TypedEdge extends T>> relation1,
Set extends TypedEdge extends T>> relation2);
}