original_docstring: 
          Builds an EmbeddingSet from a JSON object. The provided object should
          contain a "data" field containing frames, and optionally a "frameLabels"
          field containing a list of string names for each field.
          
docstring: Builds an EmbeddingSet from a JSON object. The provided object should
  contain a "data" field containing frames, and optionally a "frameLabels"
  field containing a list of string names for each field.
docstring_tokens: Builds an EmbeddingSet from a JSON object . The provided object should contain a " data " field containing frames and optionally a " frameLabels " field containing a list of string names for each field .
code: def from_json(cls, data, parents=None):
          """
          Builds an EmbeddingSet from a JSON object. The provided object should
          contain a "data" field containing frames, and optionally a "frameLabels"
          field containing a list of string names for each field.
          """
          assert "data" in data, "JSON object must contain a 'data' field"
          embs = data["data"]
          labels = data.get("frameLabels", [None for _ in range(len(embs))])
          if parents is None:
              parents = [None for _ in range(len(embs))]
          elif len(parents) == 1:
              parents = [parents[0] for _ in range(len(embs))]
          embs = [Embedding.from_json(frame, label=label, parent=parent) for frame, label, parent in zip(embs, labels, parents)]
          return cls(embs, align=False)
code_tokens: def from_json ( cls , data , parents = None ) : assert "data" in data , "JSON object must contain a 'data' field" embs = data [ "data" ] labels = data . get ( "frameLabels" , [ None for _ in range ( len ( embs ) ) ] ) if parents is None : parents = [ None for _ in range ( len ( embs ) ) ] elif len ( parents ) == 1 : parents = [ parents [ 0 ] for _ in range ( len ( embs ) ) ] embs = [ Embedding . from_json ( frame , label = label , parent = parent ) for frame , label , parent in zip ( embs , labels , parents ) ] return cls ( embs , align = False )
short_docstring: Builds an EmbeddingSet from a JSON object.
short_docstring_tokens: Builds an EmbeddingSet from a JSON object .
comment: """
          Builds an EmbeddingSet from a JSON object. The provided object should
          contain a "data" field containing frames, and optionally a "frameLabels"
          field containing a list of string names for each field.
          """