Giter Site home page Giter Site logo

Comments (3)

alasdairforsythe avatar alasdairforsythe commented on May 29, 2024

TokenMonster doesn't support this format. It supports either it's own TokenMonster .vocab format, or a YAML file, example here. You can write a simple script to convert your vocabulary into the YAML format and then import it using exportvocab executable, or the Go or Python libraries.

from tokenmonster.

abedkhooli avatar abedkhooli commented on May 29, 2024

Thanks. This is what I thought but the error msg was confusing. Is it possible to separate permission error from format error?
Would close this issue then.

from tokenmonster.

alasdairforsythe avatar alasdairforsythe commented on May 29, 2024

It would be better for the error message to say exactly what the issue is, however the Python script doesn't know the exact error because the error is originating from the tokenmonsterserver subprocess. That's why you get this vague "cannot open or save" error message. I don't think this is important enough to update everything with new error codes. But I'll keep it in mind if I do a larger update at some point.

If you use the original Go implementation, instead of Python (which wraps the Go implementation), you'll get more detailed error messages.

from tokenmonster.

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.