class_docstr: Translating embeddings for modeling multi-relational data.
  https://www.utc.fr/~bordesan/dokuwiki/_media/en/transe_nips13.pdf
class_docstr_tok: ["Translating","embeddings","for","modeling","multi-relational","data",".","https",":","\/\/www.utc.fr\/~bordesan\/dokuwiki\/_media\/en\/transe_nips13.pdf"]
code: def __call__(self, head, rel, tail):
      head = head + rel
      score = self.gamma - paddle.norm(head - tail, p=2, axis=-1)
      return score
  
imports: import math
  import numpy
  from numpy.random import RandomState
  import paddle
  import paddle.nn
  import paddle.nn.functional
  from paddle.nn.functional import log_sigmoid
label_desc: Use image node_id 2 for calling the TransEScore obj's underlying member method code with example usage: obj.__call__(head, rel, tail) and returns: score