class_docstr: Tokenizer used for SacreBLEU calculation.
  
  Source: https://github.com/mjpost/sacrebleu/tree/master/sacrebleu/tokenizers
class_docstr_tok: ["Tokenizer","used","for","SacreBLEU","calculation",".","Source",":","https",":","\/\/github.com\/mjpost\/sacrebleu\/tree\/master\/sacrebleu\/tokenizers"]
docstr: Tokenizes a line using a relatively minimal tokenization that is equivalent to mteval-v13a, used by WMT.
  
  Args:
      line: input sentence
  
  Return:
      tokenized sentence
docstr_tok: ["Tokenizes","a","line","using","a","relatively","minimal","tokenization","that","is","equivalent","to","mteval-v13a",",","used","by","WMT",".","Args",":","line",":","input","sentence","Return",":","tokenized","sentence"]
code: def _tokenize_13a(cls: Type["_SacreBLEUTokenizer"], line: str) -> str:
      """Tokenizes a line using a relatively minimal tokenization that is equivalent to mteval-v13a, used by WMT.
  
      Args:
          line: input sentence
  
      Return:
          tokenized sentence
  
      """
      # language-independent part:
      line = line.replace("<skipped>", "")
      line = line.replace("-\n", "")
      line = line.replace("\n", " ")
  
      if "&" in line:
          line = line.replace("&quot;", '"')
          line = line.replace("&amp;", "&")
          line = line.replace("&lt;", "<")
          line = line.replace("&gt;", ">")
  
      return cls._tokenize_regex(f" {line} ")
  
imports: import os
  import re
  import tempfile
  from functools import partial
  from typing import Any, ClassVar, Dict, Optional, Sequence, Type
  import torch
  from torch import Tensor, tensor
  from typing_extensions import Literal
  from torchmetrics.functional.text.bleu import _bleu_score_compute, _bleu_score_update
  from torchmetrics.utilities.imports import _IPADIC_AVAILABLE, _MECAB_AVAILABLE, _MECAB_KO_AVAILABLE, _MECAB_KO_DIC_AVAILABLE, _REGEX_AVAILABLE, _SENTENCEPIECE_AVAILABLE
label_desc: Use image node_id 7 for calling the _SacreBLEUTokenizer obj's underlying member method code with example usage: obj._tokenize_13a(cls, line) and returns: cls