Package org.chasen.mecab

Examples of org.chasen.mecab.Node


    convertNodeListToPosList(beginNode);
    posIter = posList.listIterator();
  }
 
  private void convertNodeListToPosList(Node beginNode) {
    Node node = beginNode.getNext();
    Pos prevPos = new Pos("", PosId.UNKNOWN, 0, 0, 0);
    while (!isEosNode(node)) {
      Pos curPos = new Pos(node, prevPos.getEndOffset());
      if (curPos.getPosId() == PosId.PREANALYSIS) {
        posList.addAll(getAnalyzedPoses(curPos));
      } else {
        posList.add(curPos);
      }
      prevPos = curPos;
      node = node.getNext();
    }
  }
View Full Code Here

TOP

Related Classes of org.chasen.mecab.Node

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.