class_docstr: Universal Part of Speech Tagger.
class_docstr_tok: ["Universal","Part","of","Speech","Tagger","."]
docstr: Building the predictor out of the model.
docstr_tok: ["Building","the","predictor","out","of","the","model","."]
code: def _load_network(self):
      """Building the predictor out of the model."""
      self.embeddings = load_embeddings(self.lang, type="cw")
      self.model = load_pos_model(lang=self.lang, version=2)
  
      def predict_proba(input_):
          hidden = np.tanh(
              np.dot(input_, self.model["W1"]) + self.model["b1"]
          )
          output = np.dot(hidden, self.model["W2"]) + self.model["b2"]
          scores = np.exp(output)
          probs = scores / scores.sum()
          return probs
  
      return predict_proba
  
imports: import numpy
  from six.moves import range
  from ..decorators import memoize
  from ..load import load_embeddings, load_ner_model, load_pos_model, load_unified_pos_model
label_desc: Use image node_id 2 for calling the POSTagger obj's underlying member method code with example usage: obj._load_network() and returns: predict_proba, probs