Code / scripts/ml_training/essay_scoring/__init__.py

scripts/ml_training/essay_scoring/__init__.py

View this file on Codeberg


  1
  """Whitebox essay scoring research pipeline."""


  2
  


  3
  from __future__ import annotations


  4
  


  5
  import warnings


  6
  


  7
  # Third-party deps (notably SWIG-based extensions like `sentencepiece`) can emit noisy


  8
  # DeprecationWarnings on newer Python versions. These warnings are not actionable within


  9
  # this repo and obscure research logs, so we filter them narrowly by message.


  10
  warnings.filterwarnings(


  11
      "ignore",


  12
      message=r".*builtin type SwigPyPacked has no __module__ attribute.*",


  13
      category=DeprecationWarning,


  14
  )


  15
  warnings.filterwarnings(


  16
      "ignore",


  17
      message=r".*builtin type SwigPyObject has no __module__ attribute.*",


  18
      category=DeprecationWarning,


  19
  )


  20
  warnings.filterwarnings(


  21
      "ignore",


  22
      message=r".*builtin type swigvarlink has no __module__ attribute.*",


  23
      category=DeprecationWarning,


  24
  )