class_docstr: Base semiring class.
  
  Based on description in:
  
  * Semiring parsing :cite:`goodman1999semiring`
docstr: Convert to semiring by adding an extra first dimension.
docstr_tok: ["Convert","to","semiring","by","adding","an","extra","first","dimension","."]
code: def convert(cls, potentials):
      "Convert to semiring by adding an extra first dimension."
      return potentials.unsqueeze(0)
  
imports: import torch
label_desc: Use image node_id 6 for calling the Semiring obj's underlying member method code with example usage: obj.convert(cls, potentials) and returns: potentials