Examples of FlatPathWeight


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

Examples of edu.ucla.sspace.dependency.FlatPathWeight

                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

Examples of edu.ucla.sspace.dependency.FlatPathWeight

        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
Copyright © 2018 www.massapi.com. 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.