Skip to content

about <onnx_decode_sentence.py> #3

Description

@XhrLeokk

hi, @frankyoujian , I have successfully ran the sherpa-onnx version, but

I got a batch of sentences want to be decode, I may need to use <onnx_decode_sentence.py> file to be more efficient.
when I try to run <onnx_decode_sentence.py> ,

  1. firstly, I change "from model import Model" to "from model import Model_new as Model". to run the code.
  2. secondly, as it goes to
    sp.load(args.bpe_model) got error
    RuntimeError: Internal: could not parse ModelProto from ./sherpa-onnx/download/sherpa-onnx-online-punct-en-2024-08-06/bpe.vocab

am I missing a "bpe file" that can be read by sp? or the code need to be updated?
I'm not an expert of ONNX, Thanks for the help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions