All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.ucla.sspace.graph.RelationSemantics Maven / Gradle / Ivy

Go to download

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> relation1, 
                      Set> relation2);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy