We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With "abcd漢字" I get 6 tokens, with no POS info. But with "abc漢字" I get 2 tokens, with POS values.
Curiously, when I try it at http://rakuten-nlp.github.io/rakutenma/, both sentences work.
My (node.js) code is like this, using the default model_ja.json file that comes with the tokenizer.
const fs = require('fs'); const RakutenMA = require('rakutenma'); const model = JSON.parse(fs.readFileSync("model_ja.json")); const rma = new RakutenMA(model); rma.featset = RakutenMA.default_featset_ja; rma.hash_func = RakutenMA.create_hash_func(15); //The 15 is to match the pre-trained data. const s = "abcd漢字"; rma.tokenize(s)
Is there anything I am missing, or doing wrong, here?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
With "abcd漢字" I get 6 tokens, with no POS info. But with "abc漢字" I get 2 tokens, with POS values.
Curiously, when I try it at http://rakuten-nlp.github.io/rakutenma/, both sentences work.
My (node.js) code is like this, using the default model_ja.json file that comes with the tokenizer.
Is there anything I am missing, or doing wrong, here?
The text was updated successfully, but these errors were encountered: