Package edu.ucla.sspace.dependency

Examples of edu.ucla.sspace.dependency.DependencyPathAcceptor


        return weight;
    }

    protected DependencyPathAcceptor getAcceptor() {
        // Create the acceptor.
        DependencyPathAcceptor acceptor;
        if (argOptions.hasOption('p'))
            acceptor = ReflectionUtil.getObjectInstance(
                    argOptions.getStringOption('p'));
        else
            acceptor = new UniversalPathAcceptor();
View Full Code Here


    protected SemanticSpace getSpace() {
        // Ensure that the configured DependencyExtactor is in place prior to
        // constructing the SVS
        setupDependencyExtractor();       

        DependencyPathAcceptor acceptor;
        if (argOptions.hasOption("pathAcceptor"))
            acceptor = ReflectionUtil.getObjectInstance(
                    argOptions.getStringOption("pathAcceptor"));
        else
            acceptor = new UniversalPathAcceptor();
View Full Code Here

        setupDependencyExtractor();

        int bound = argOptions.getIntOption('b', 10000);
        Transform transform = argOptions.getObjectOption(
                'T', new NoTransform());
        DependencyPathAcceptor acceptor = argOptions.getObjectOption(
                'a', new UniversalPathAcceptor());
        DependencyPathWeight weighter = argOptions.getObjectOption(
                'w', new FlatPathWeight());
        int pathLength = argOptions.getIntOption('l', 5);
        return new OccurrenceCounter(
View Full Code Here

TOP

Related Classes of edu.ucla.sspace.dependency.DependencyPathAcceptor

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.