Examples of PosId


Examples of com.github.bibreen.mecab_ko_lucene_analyzer.PosIdManager.PosId

import com.github.bibreen.mecab_ko_lucene_analyzer.PosIdManager.PosId;

public class PosIdManagerTest {
  @Test
  public void testConvertFromTagString() {
    PosId posId = PosId.convertFrom("NN");
    assertEquals(PosId.N, posId);
   
    posId = PosId.convertFrom("InvalidTagString");
    assertEquals(PosId.UNKNOWN, posId);
  }
View Full Code Here

Examples of com.github.bibreen.mecab_ko_lucene_analyzer.PosIdManager.PosId

  }

  @Override
  public boolean isSkippablePos(Pos pos) {
    // 단독으로 쓰인 심볼은 token 생성 제외한다.
    PosId posId = pos.getPosId();
    return posId == PosId.SF ||
        posId.in(PosId.SP, PosId.SY);
  }
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.