Class SparseEmbedding

java.lang.Object
com.alibaba.dashscope.types.embeddings.SparseEmbedding

public class SparseEmbedding extends Object
One sparse-vector term returned when output_type is sparse or dense&sparse. index is the vocabulary position, value its weight, and token the decoded text (may be absent for some models).
  • Constructor Details

    • SparseEmbedding

      public SparseEmbedding()
  • Method Details

    • getIndex

      public Integer getIndex()
    • getValue

      public Double getValue()
    • getToken

      public String getToken()