Package opennlp.tools.formats.ad.ADSentenceStream.SentenceParser

Examples of opennlp.tools.formats.ad.ADSentenceStream.SentenceParser.Leaf


    TreeElement[] elements = node.getElements();
    for (int i = 0; i < elements.length; i++) {
        if (elements[i].isLeaf()) {
            boolean isIntermediate = false;
            String tag = phraseTag;
            Leaf leaf = (Leaf) elements[i];
           
            String localChunk = getChunkTag(leaf);
            if(localChunk != null && !tag.equals(localChunk)) {
              tag = localChunk;
            }
           
            if(isIntermediate(tags, target, tag) && (inherited || i > 0)) {
                  isIntermediate = true;
            }
            if(!isIncludePunctuations() && leaf.getFunctionalTag() == null &&
                (
                    !( i + 1 < elements.length && elements[i+1].isLeaf() ) ||
                    !( i > 0 && elements[i - 1].isLeaf() )
                )
              ){
View Full Code Here


    TreeElement[] elements = node.getElements();
    for (int i = 0; i < elements.length; i++) {
        if (elements[i].isLeaf()) {
            boolean isIntermediate = false;
            String tag = phraseTag;
            Leaf leaf = (Leaf) elements[i];

            String localChunk = getChunkTag(leaf);
            if(localChunk != null && !tag.equals(localChunk)) {
              tag = localChunk;
            }

            if(isIntermediate(tags, target, tag) && (inherited || i > 0)) {
                  isIntermediate = true;
            }
            if(!isIncludePunctuations() && leaf.getFunctionalTag() == null &&
                (
                    !( i + 1 < elements.length && elements[i+1].isLeaf() ) ||
                    !( i > 0 && elements[i - 1].isLeaf() )
                )
              ){
View Full Code Here

TOP

Related Classes of opennlp.tools.formats.ad.ADSentenceStream.SentenceParser.Leaf

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.