docstr: Encodes a string into tokens, ignoring special tokens.
  
  This is equivalent to `encode(text, disallowed_special=())` (but slightly faster).
  
  ```
  >>> enc.encode_ordinary("hello world")
  [31373, 995]
docstr_tok: ["Encodes","a","string","into","tokens",",","ignoring","special","tokens",".","This","is","equivalent","to","`","encode","(","text",",","disallowed_special=","(",")",")","`","(","but","slightly","faster",")",".","``","`",">",">",">","enc.encode_ordinary","(","``","hello","world","''",")","[","31373",",","995","]"]
code: def encode_ordinary(self, text: str) -> list[int]:
      """Encodes a string into tokens, ignoring special tokens.
  
      This is equivalent to `encode(text, disallowed_special=())` (but slightly faster).
  
      ```
      >>> enc.encode_ordinary("hello world")
      [31373, 995]
      """
      try:
          return self._core_bpe.encode_ordinary(text)
      except UnicodeEncodeError:
          # See comment in encode
          text = text.encode("utf-16", "surrogatepass").decode(
              "utf-16", "replace"
          )
          return self._core_bpe.encode_ordinary(text)
  
imports: from __future__ import annotations
  import functools
  from concurrent.futures import ThreadPoolExecutor
  from typing import AbstractSet, Collection, Literal, NoReturn, Optional, Union
  import regex
  from tiktoken import _tiktoken
label_desc: Use image node_id 3 for calling the Encoding obj's underlying member method code with example usage: obj.encode_ordinary(text) and returns: self, self