Package edu.ucla.sspace.dependency

Examples of edu.ucla.sspace.dependency.FlatPathWeight


        DependencyPathWeight weight;
        if (argOptions.hasOption('G'))
            weight = ReflectionUtil.getObjectInstance(
                        argOptions.getStringOption('G'));
        else
            weight = new FlatPathWeight();
        return weight;
    }
View Full Code Here


                getObjectInstance(basisMappingProp);

        String pathWeightProp =
            properties.getProperty(PATH_WEIGHTING_PROPERTY);
        weighter = (pathWeightProp == null)
            ? new FlatPathWeight()
            : ReflectionUtil.<DependencyPathWeight>
                getObjectInstance(pathWeightProp);

        String acceptorProp =
            properties.getProperty(PATH_ACCEPTOR_PROPERTY);
View Full Code Here

        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(
                transform, bound, acceptor, weighter, pathLength);
    }
View Full Code Here

TOP

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

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.