Git Product home page Git Product logo

Comments (5)

taku910 avatar taku910 commented on May 6, 2024 1

Thank you for uploading the model.

Seems the the model contains a null (\0) token, implying that the training corpus contains '\0'.
One possibility is that the corpus is not encoded in utf-8. Trivial work around is to escape '\0' in the corpus into some safe character like ' '.

Anyway, I will put some workaround (or simply emitting an error) to prevent the model from having '\0'.

Thank you.

from sentencepiece.

taku910 avatar taku910 commented on May 6, 2024 1

Updated the code to refuse null character. Please try the latest spm_train.

from sentencepiece.

taku910 avatar taku910 commented on May 6, 2024

Thank you for using SentencePiece

Seems the model accidentally contains an empty token, which is not allowed.

How did you make/train 'm.model'. Could you upload 'm.model' so I can investigate the error?

from sentencepiece.

AlexanderCYchu avatar AlexanderCYchu commented on May 6, 2024

Thank you for this amazing repo since it makes word segmentation on Cantonese much better and easier. It is really hard to find an unsupervised method that this good in terms of accuracy, speed, and low memory usage.

Attaching the model file.
m3.model.zip

from sentencepiece.

AlexanderCYchu avatar AlexanderCYchu commented on May 6, 2024

Thanks, I will first try to encode my corpus in utf-8. Will report back to here.

from sentencepiece.

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.