Git Product home page Git Product logo

rmecabko's People

Contributors

junhewk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

rmecabko's Issues

windows에서의 인코딩 이슈

sessionInfo()
R version 3.4.4 (2018-03-15)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

RmecabKo는 오늘(18-05-23) 설치했습니다.

pos() 적용 시 결과를 내지 못하는 오류가 발생합니다.

  • UTF-8로 phrase가는 경우 결과가 "NA/SL"로 나옴
  • pos() 적용 전에 iconv 함수를 사용해 CP949로 인코딩을 변경하면 정상 작동함

text <- c("행태소 분석 테스트 중입니다.")
Encoding(text)
[1] "unknown"
pos(text)
$행태소 분석 테스트 중입니다.
[1] "행태/NNG" "소/XPN" "분석/NNG" "테스트/NNG" "중/NNB" "입니다/VCP+EF" "./SF"

text2 <- iconv(text, "CP949", "UTF-8")
Encoding(text2)
[1] "UTF-8"
pos(text2)
$행태소 분석 테스트 중입니다.
[1] "NA/SL"

text3 <- iconv(text2, "UTF-8", "CP949")
Encoding(text3)
[1] "unknown"
pos(text3)
$행태소 분석 테스트 중입니다.
[1] "행태/NNG" "소/XPN" "분석/NNG" "테스트/NNG" "중/NNB" "입니다/VCP+EF" "./SF"

사용자 dictionary 에 단어추가하는 방법?

안녕하세요,
RmecabKo 를 사용하다가 궁금한 게 있어 문의드립니다.

현재 운영체제는 윈도우 입니다.
noun() 함수를 실행 할 경우 "마스크" 라는 단어가 명사로 추출되지 않아
이를 개선하고자 방법을 찾다가, 사용자 사전에 단어를 등록하는 방법이 가능한지 여쭤보고 싶습니다.

윈도우/리눅스 운영체제 별로 단어추가, 분할규칙 생성이 가능 할까요?
참고 : java 버전의 seunjeon 에는 아래와 같은 코드를 이용하여 가능 한 것을 발견하였습니다.

/**
* 사용자 사전 추가
* surface,cost
* surface: 단어명. '+' 로 복합명사를 구성할 수 있다.
* '+'문자 자체를 사전에 등록하기 위해서는 '+'로 입력. 예를 들어 'C++'
* cost: 단어 출연 비용. 작을수록 출연할 확률이 높다.
*/
Analyzer.setUserDict(Arrays.asList("덕후", "버카충,-100", "낄끼+빠빠,-100").iterator());
for (LNode node : Analyzer.parseJava("덕후냄새가 난다.")) {
System.out.println(node);
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.