Examples of headNode()


Examples of edu.ucla.sspace.dependency.DependencyRelation.headNode()

                    DependencyRelation relation = path.iterator().next();

                    // Skip relations that do not have the focusWord as the
                    // head word in the relation.  The inverse relation will
                    // eventually be encountered and we'll account for it then.
                    if (!relation.headNode().word().equals(focusWord))
                        continue;

                    RelationTuple relationKey = new RelationTuple(
                            focusIndex, relation.relation().intern());
                    SparseDoubleVector relationVector = localTuples.get(
View Full Code Here

Examples of edu.ucla.sspace.dependency.DependencyRelation.headNode()

        String otherTerm = path.last().word();

        // Skip any filtered features.
        if (otherTerm.equals(EMPTY_STRING))
            return null;
        boolean isFocusHead = !rel.headNode().word().equals(focusTerm);
        return svs.contextualize(focusTerm, relation, otherTerm, isFocusHead);
    }

    /**
     * A No-op
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.