Package edu.ucla.sspace.index

Examples of edu.ucla.sspace.index.RandomIndexVectorGenerator


            properties.getProperty(PERMUTATION_FUNCTION_PROPERTY);
        permutationFunc = (permutationFuncProp != null)
            ? loadPermutationFunction(permutationFuncProp)
            : new TernaryPermutationFunction();

        RandomIndexVectorGenerator indexVectorGenerator =
            new RandomIndexVectorGenerator(vectorLength, properties);

        String useSparseProp =
        properties.getProperty(USE_SPARSE_SEMANTICS_PROPERTY);
        useSparseSemantics = (useSparseProp != null)
            ? Boolean.parseBoolean(useSparseProp)
View Full Code Here


        this.usePermutations = usePermutations;
        this.permutationFunc = permutationFunc;       
        this.useSparseSemantics = useSparseSemantics;
        RANDOM.setSeed(randomSeed);

        RandomIndexVectorGenerator indexVectorGenerator =
            new RandomIndexVectorGenerator(vectorLength, otherProps);
        wordToIndexVector = new GeneratorMap<TernaryVector>(
                indexVectorGenerator);
        wordToMeaning = new ConcurrentHashMap<String,IntegerVector>();
        semanticFilter = new HashSet<String>();      
    }
View Full Code Here

            ? (DependencyRelationAcceptor)
                ReflectionUtil.getObjectInstance(acceptorProp)
            : new UniversalRelationAcceptor();

        // Set up the generator vector maps.
        RandomIndexVectorGenerator indexVectorGenerator =
            new RandomIndexVectorGenerator(vectorLength, properties);
        indexMap = new GeneratorMap<TernaryVector>(indexVectorGenerator);
        wordSpace = new ConcurrentHashMap<String,IntegerVector>();
        semanticFilter = new HashSet<String>();
    }
View Full Code Here

            properties.getProperty(PERMUTATION_FUNCTION_PROPERTY);
        permutationFunc = (permutationFuncProp != null)
            ? loadPermutationFunction(permutationFuncProp)
            : new TernaryPermutationFunction();

        RandomIndexVectorGenerator indexVectorGenerator =
            new RandomIndexVectorGenerator(vectorLength, properties);

        String useSparseProp =
            properties.getProperty(USE_SPARSE_SEMANTICS_PROPERTY);
        useSparseSemantics = (useSparseProp != null)
            ? Boolean.parseBoolean(useSparseProp)
View Full Code Here

    // Create an index map.
    if (argOptions.hasOption('L'))
      indexMap = loadObject(openLoadFile());
    else
      indexMap = new GeneratorMap<TernaryVector>(new RandomIndexVectorGenerator(
        indexVectorLength));

    // Load the index map from file if one was specified.
  }
View Full Code Here

        if (argOptions.hasOption('L')) {
            indexMap = loadObject(openLoadFile());
            permFunc = loadObject(openLoadFile());
        } else {
            indexMap = new GeneratorMap<TernaryVector>(
                    new RandomIndexVectorGenerator(vectorLength));
            if (argOptions.hasOption('P')) {
                PermutationFunction<TernaryVector> basePermFunc =
                    ReflectionUtil.getObjectInstance(
                            argOptions.getStringOption('P'));
                permFunc =
View Full Code Here

        useSparseSemantics = (useSparseProp != null)
            ? Boolean.parseBoolean(useSparseProp)
            : true;

        indexVectorGenerator =
            new RandomIndexVectorGenerator(vectorLength, properties);

        // The various maps for keeping word and document state during
        // processing
        termToIndexVector = new ConcurrentHashMap<String,TernaryVector>();
        docToVector = new ConcurrentHashMap<Integer,IntegerVector>();
View Full Code Here

            properties.getProperty(PERMUTATION_FUNCTION_PROPERTY);
        permutationFunc = (permutationFuncProp != null)
            ? loadPermutationFunction(permutationFuncProp)
            : new TernaryPermutationFunction();

        RandomIndexVectorGenerator indexVectorGenerator =
            new RandomIndexVectorGenerator(vectorLength, properties);

        String useSparseProp =
        properties.getProperty(USE_SPARSE_SEMANTICS_PROPERTY);
        useSparseSemantics = (useSparseProp != null)
            ? Boolean.parseBoolean(useSparseProp)
View Full Code Here

TOP

Related Classes of edu.ucla.sspace.index.RandomIndexVectorGenerator

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.