class_docstr: This class defines the API to inspect models and should not be used to
  create objects. It will be returned by functions such as load_model or
  train.
  
  In general this API assumes to be given only unicode for Python2 and the
  Python3 equvalent called str for any string-like arguments. All unicode
  strings are then encoded as UTF-8 and fed to the fastText C++ API.
class_docstr_tok: ["This","class","defines","the","API","to","inspect","models","and","should","not","be","used","to","create","objects",".","It","will","be","returned","by","functions","such","as","load_model","or","train",".","In","general","this","API","assumes","to","be","given","only","unicode","for","Python2","and","the","Python3","equvalent","called","str","for","any","string-like","arguments",".","All","unicode","strings","are","then","encoded","as","UTF-8","and","fed","to","the","fastText","C++","API","."]
docstr: Quantize the model reducing the size of the model and
  it's memory footprint.
code: def quantize(
      self,
      input=None,
      qout=False,
      cutoff=0,
      retrain=False,
      epoch=None,
      lr=None,
      thread=None,
      verbose=None,
      dsub=2,
      qnorm=False,
  ):
      """
      Quantize the model reducing the size of the model and
      it's memory footprint.
      """
      a = self.f.getArgs()
      if not epoch:
          epoch = a.epoch
      if not lr:
          lr = a.lr
      if not thread:
          thread = a.thread
      if not verbose:
          verbose = a.verbose
      if retrain and not input:
          raise ValueError("Need input file path if retraining")
      if input is None:
          input = ""
      self.f.quantize(
          input,
          qout,
          cutoff,
          retrain,
          epoch,
          lr,
          thread,
          verbose,
          dsub,
          qnorm,
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import fasttext_pybind
  import numpy
  import multiprocessing
  import sys
  from itertools import chain
label_desc: Use image node_id 24 for calling the _FastText obj's underlying member method code with example usage: obj.quantize(input, qout, cutoff, retrain, epoch, lr, thread, verbose, dsub, qnorm) without return types