Code Monkey home page Code Monkey logo

Comments (2)

ratsgo avatar ratsgo commented on August 18, 2024

@JulieOnIsland 님, 질문 주셔서 감사드립니다. 결론만 말씀드리면 문자 기준 BPE를 수행하든, 바이트 기준 BPE를 하든, 수행 대상만 달라졌을 뿐 본질은 같습니다.

45쪽에 소개한 내용은 문자 기준의 BPE입니다. 두 개씩 묶어서 병합합니다. 예컨대 다음과 같습니다.

  • a, b, c, d, e
  • a, b, cd, e
  • a, bcd, e

위의 예시를 보면 c와 d가 병합되었고, 그다음은 b와 cd가 병합되었습니다. 다시 말해 서로 병합되는 문자 길이가 다양합니다.

55쪽에 소개한 내용은 바이트 기준 BPE입니다. 이 역시 두 개씩 묶어서 병합합니다. 예컨대 다음과 같습니다.

  • ì, ķ, Ī, ë, ħ
  • ì, ķ, Īë, ħ
  • ì, ķĪë, ħ

위의 예시를 보면 Ī와 ë가 병합되었고, 그다음은 ķ와 Īë가 병합되었습니다. 이 역시 서로 병합되는 문자 길이가 다양합니다.

from nlpbook.

JulieOnIsland avatar JulieOnIsland commented on August 18, 2024

@ratsgo 답변 감사합니다! :-)

from nlpbook.

Related Issues (20)

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.