public final class SimilarityUtil
extends java.lang.Object
构造器和说明 |
---|
SimilarityUtil() |
限定符和类型 | 方法和说明 |
---|---|
static Document |
copyAndScore(Document doc,
float[] queryEmbed)
复制并评分
|
static java.util.List<Document> |
filter(QueryCondition condition,
java.util.stream.Stream<Document> docs)
过滤(已经有评分的)
|
static java.util.List<Document> |
scoreAndfilter(QueryCondition condition,
java.util.stream.Stream<Document> docs,
float[] queryEmbed)
评分并过滤
|
public static java.util.List<Document> filter(QueryCondition condition, java.util.stream.Stream<Document> docs) throws java.io.IOException
java.io.IOException
public static java.util.List<Document> scoreAndfilter(QueryCondition condition, java.util.stream.Stream<Document> docs, float[] queryEmbed) throws java.io.IOException
java.io.IOException