Package edu.ucla.sspace.common.Similarity

Examples of edu.ucla.sspace.common.Similarity.SimType


        int spaces = argOptions.numPositionalArgs();
        for (int i = 0; i < spaces; ++i) {
            SemanticSpace sspace = null;
            String[] sspaceConfig = argOptions.getPositionalArg(i).split(",");
            String sspaceFileName = sspaceConfig[0];
            SimType comparisonFunction = SimType.COSINE;
            if (sspaceConfig.length > 1) {
                for (int j = 1; j < sspaceConfig.length; ++j) {
                    String setting = sspaceConfig[j];
                    if (j > 2) {
                        throw new IllegalStateException(
View Full Code Here


        String minSimProp = props.getProperty(MIN_CLUSTER_SIMILARITY_PROPERTY);
        String numClustProp = props.getProperty(NUM_CLUSTERS_PROPERTY);
        String simFuncProp = props.getProperty(SIMILARITY_FUNCTION_PROPERTY);
        String linkageProp = props.getProperty(CLUSTER_LINKAGE_PROPERTY);

        SimType simFunc = SimType.valueOf((simFuncProp == null)
                                          ? DEFAULT_SIMILARITY_FUNCTION_PROPERTY
                                          : simFuncProp);
        ClusterLinkage linkage = ClusterLinkage.valueOf((linkageProp == null)
            ? DEFAULT_CLUSTER_LINKAGE_PROPERTY
            : linkageProp);
View Full Code Here

        ClusterLinkage linkage = ClusterLinkage.valueOf(props.getProperty(
                    CLUSTER_LINKAGE_PROPERTY,
                    DEFAULT_CLUSTER_LINKAGE_PROPERTY));

        SimType similarityFunction = SimType.valueOf(props.getProperty(
                    SIMILARITY_FUNCTION_PROPERTY,
                    DEFAULT_SIMILARITY_FUNCTION_PROPERTY));
        return toAssignments(cluster(m, clusterSimilarityThreshold, linkage,
                                     similarityFunction, numClusters),
                             m, numClusters);
View Full Code Here

TOP

Related Classes of edu.ucla.sspace.common.Similarity.SimType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.