public class JIPipeLegacyNodeDatabaseSearch extends Object
Constructor and Description |
---|
JIPipeLegacyNodeDatabaseSearch(JIPipeNodeDatabase nodeDatabase) |
Modifier and Type | Method and Description |
---|---|
static List<String> |
buildTokens(List<String> texts)
Converts a list of texts into word tokens
|
static int |
dataTypeDistance(Class<? extends JIPipeData> from,
Class<? extends JIPipeData> to) |
List<JIPipeNodeDatabaseEntry> |
query(String text,
JIPipeNodeDatabasePipelineVisibility role,
boolean allowExisting,
boolean allowNew,
JIPipeSlotType targetSlotType,
Class<? extends JIPipeData> targetDataType) |
List<JIPipeNodeDatabaseEntry> |
query(String text,
JIPipeNodeDatabasePipelineVisibility role,
boolean allowExisting,
boolean allowNew,
Set<String> pinnedIds) |
double |
queryTextRanking(JIPipeNodeDatabaseEntry entry,
String text,
List<String> textTokens) |
static double |
weight(double x,
double xMax) |
public JIPipeLegacyNodeDatabaseSearch(JIPipeNodeDatabase nodeDatabase)
public static List<String> buildTokens(List<String> texts)
texts
- the textspublic static double weight(double x, double xMax)
public static int dataTypeDistance(Class<? extends JIPipeData> from, Class<? extends JIPipeData> to)
public double queryTextRanking(JIPipeNodeDatabaseEntry entry, String text, List<String> textTokens)
public List<JIPipeNodeDatabaseEntry> query(String text, JIPipeNodeDatabasePipelineVisibility role, boolean allowExisting, boolean allowNew, Set<String> pinnedIds)
public List<JIPipeNodeDatabaseEntry> query(String text, JIPipeNodeDatabasePipelineVisibility role, boolean allowExisting, boolean allowNew, JIPipeSlotType targetSlotType, Class<? extends JIPipeData> targetDataType)
Copyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.