Skip to content

[Bug] Davlan/bert fails in demo #116

@rg3h

Description

@rg3h

Describe the bug

uncaught promise error when using https://xenova.github.io/transformers.js/
and selecting the Token classification w/ Davlan/bert-base-multilingual-cased-ner-hrl

Task:
How to reproduce
Steps or a minimal working example to reproduce the behavior

go to https://xenova.github.io/transformers.js/
Select the Token classification w/ Davlan/bert-base-multilingual-cased-ner-hrl option from the drop down
Select "Generate" button
Nothing appears to happen and developer window reports:
caught (in promise) Error: token_ids must be a non-empty array of integers.
at Function.decode (worker-ed2ef37e.js:1790:46739)
at worker-ed2ef37e.js:1791:944
at Array.map ()
at token_classification (worker-ed2ef37e.js:1791:906)
at async worker-ed2ef37e.js:1790:127237

Expected behavior
A clear and concise description of what you expected to happen.

I was hoping to see the resulting token ids for the demo.

Logs/screenshots
If applicable, add logs/screenshots to help explain your problem.

Environment

  • Transformers.js version: not sure, it is whatever your demo page is running on 18May2023
  • Browser (if applicable): I was running Brave
  • Operating system (if applicable): Windows 10
  • Other:

Additional context
Add any other context about the problem here.

The translation demo does work, so other aspects of this awesome library are working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions