Skip to content

Commit

Permalink
ignore error in batch_decode
Browse files Browse the repository at this point in the history
  • Loading branch information
ocavue committed Dec 7, 2024
1 parent 9acdd87 commit 5710c63
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/models/mgp_str/processing_mgp_str.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ export class MgpstrProcessor extends Processor {
* - bpe_preds: The list of BPE decoded sentences.
* - wp_preds: The list of wp decoded sentences.
*/
// @ts-expect-error The type of this method is not compatible with the one
// in the base class. It might be a good idea to fix this.
batch_decode([char_logits, bpe_logits, wp_logits]) {
const [char_preds, char_scores] = this._decode_helper(char_logits, 'char');
const [bpe_preds, bpe_scores] = this._decode_helper(bpe_logits, 'bpe');
Expand Down

0 comments on commit 5710c63

Please sign in to comment.