class_docstr: Shallow models for knowledge representation learning.
      
docstr: Compute scores of triplets.
          
code: def forward(self, h_emb, r_emb, t_emb):
      """Compute scores of triplets."""
      self.set_train_mode()
  
      score = self._score_func(h_emb, r_emb, t_emb)
      return score
  
imports: import os
  import json
  import math
  import warnings
  import numpy
  import paddle
  import paddle.nn
  import paddle.nn.functional
  from pgl.utils.shared_embedding import SharedEmbedding
  from models.score_funcs import TransEScore, RotatEScore, DistMultScore, ComplExScore, QuatEScore, OTEScore
  from models.init_func import InitFunction
  from utils import uniform, timer_wrapper
label_desc: Use image node_id 7 for calling the KGEModel obj's underlying member method code with example usage: obj.forward(h_emb, r_emb, t_emb) and returns: score