parameters: (self, w0, w1, w2)
docstring: Predict word w3 as in w0:w1 vs w2:w3.
docstring_summary: Predict word w3 as in w0:w1 vs w2:w3.
docstring_tokens: Predict word w3 as in w0 : w1 vs w2 : w3 .
function: def analogy(self, w0, w1, w2):
      """Predict word w3 as in w0:w1 vs w2:w3."""
      wid = np.array([[self._word2id.get(w, 0) for w in [w0, w1, w2]]])
      idx = self._predict(wid)
      for c in [self._id2word[i] for i in idx[0, :]]:
        if c not in [w0, w1, w2]:
          print(c)
          break
      print("unknown")
function_tokens: def analogy ( self , w0 , w1 , w2 ) : wid = np . array ( [ [ self . _word2id . get ( w , 0 ) for w in [ w0 , w1 , w2 ] ] ] ) idx = self . _predict ( wid ) for c in [ self . _id2word [ i ] for i in idx [ 0 , : ] ] : if c not in [ w0 , w1 , w2 ] : print ( c ) break print ( "unknown" )