SVD.Algorithm alg = (svdProp == null) ? SVD.Algorithm.ANY : SVD.Algorithm.valueOf(svdProp);
if (algorithm.equals(Algorithm.ANY)) algorithm = getFastestAvailableAlgorithm(); if (algorithm == null)
SVD.Algorithm alg = (svdProp == null) ? SVD.Algorithm.ANY : SVD.Algorithm.valueOf(svdProp);
if (algorithm.equals(Algorithm.ANY)) algorithm = getFastestAvailableAlgorithm(); if (algorithm == null)
protected SemanticSpace getSpace() { try { int dimensions = argOptions.getIntOption("dimensions", 300); Transform transform = new LogEntropyTransform(); if (argOptions.hasOption("preprocess")) transform = ReflectionUtil.getObjectInstance( argOptions.getStringOption("preprocess")); String algName = argOptions.getStringOption("svdAlgorithm", "ANY"); MatrixFactorization factorization = SVD.getFactorization( Algorithm.valueOf(algName.toUpperCase())); basis = new StringBasisMapping(); return new LatentSemanticAnalysis( false, dimensions, transform, factorization, false, basis); } catch (IOException ioe) { throw new IOError(ioe); } }
protected SemanticSpace getSpace() { try { int dimensions = argOptions.getIntOption("dimensions", 300); Transform transform = new LogEntropyTransform(); if (argOptions.hasOption("preprocess")) transform = ReflectionUtil.getObjectInstance( argOptions.getStringOption("preprocess")); String algName = argOptions.getStringOption("svdAlgorithm", "ANY"); SingularValueDecomposition factorization = SVD.getFactorization( Algorithm.valueOf(algName.toUpperCase())); basis = new StringBasisMapping(); return new LatentSemanticAnalysis( false, dimensions, transform, factorization, false, basis); } catch (IOException ioe) { throw new IOError(ioe); } }