Giter Site home page Giter Site logo

TFRecord 용량 문의 about koelectra HOT 2 CLOSED

monologg avatar monologg commented on August 19, 2024
TFRecord 용량 문의

from koelectra.

Comments (2)

saebyeok avatar saebyeok commented on August 19, 2024

지나가다가 답변이 없길래 남깁니다.
문장을 기준으로 데이터를 생성하기 때문에 문장분리가 제대로 안되어 있거나 문장이 매우 긴 코퍼스의 경우 512 토큰으로 잘리면서 용량이 줄어들 수 있습니다. 그 외에도 여러가지 가능성은 있을 것 같습니다.
코퍼스를 직접 확인해 시거나 tfrecord를 읽어서 제대로 생성되었는지 다시 복원해 보는 것이 좋을 것 같네요.

from koelectra.

monologg avatar monologg commented on August 19, 2024

@Jimojimojimo

제가 확인이 많이 늦었네요ㅠ
윗분이 답변 주신대로 문장이 매우 긴 코퍼스여서 512 이상이 많이 truncate 된 것이 원인일 수 있습니다.
(참고로 KoELECTRA에서 pretraining corpus를 만들 때 kss 라이브러리로 문장분리를 진행하였습니다)
혹은 do_lower_case=True 로 세팅하는 등의 이유로 대부분의 토큰이 [UNK]가 되는 경우도 간혹 들었습니다.

여러가지 가능성이 존재할 것 같습니다. 직접 로그를 찍어보면서 확인해보는것을 추천드려요!

from koelectra.

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.