Home
last modified time | relevance | path

Searched refs:entityScores (Results 1 – 4 of 4) sorted by relevance

/frameworks/support/textclassifier/src/main/java/androidx/textclassifier/
DTextLinks.java192 TextLink(int start, int end, @NonNull Map<String, Float> entityScores) { in TextLink() argument
193 Preconditions.checkNotNull(entityScores); in TextLink()
194 Preconditions.checkArgument(!entityScores.isEmpty()); in TextLink()
198 mEntityScores = new EntityConfidence(entityScores); in TextLink()
502 public Builder addLink(int start, int end, @NonNull Map<String, Float> entityScores) { in addLink() argument
503 mLinks.add(new TextLink(start, end, Preconditions.checkNotNull(entityScores))); in addLink()
/frameworks/base/core/java/android/view/textclassifier/
DTextLinks.java202 TextLink(int start, int end, Map<String, Float> entityScores, in TextLink() argument
204 Preconditions.checkNotNull(entityScores); in TextLink()
205 Preconditions.checkArgument(!entityScores.isEmpty()); in TextLink()
209 mEntityScores = new EntityConfidence(entityScores); in TextLink()
601 public Builder addLink(int start, int end, Map<String, Float> entityScores) { in addLink() argument
602 mLinks.add(new TextLink(start, end, entityScores, null)); in addLink()
611 Builder addLink(int start, int end, Map<String, Float> entityScores, in addLink() argument
613 mLinks.add(new TextLink(start, end, entityScores, urlSpan)); in addLink()
DTextClassifier.java587 entityScores(entityType), in addLinks()
608 private static Map<String, Float> entityScores(@EntityType String entityType) { in entityScores() method in TextClassifier.Utils
DTextClassifierImpl.java246 final Map<String, Float> entityScores = new HashMap<>(); in generateLinks() local
248 entityScores.put(results[i].getCollection(), results[i].getScore()); in generateLinks()
250 builder.addLink(span.getStartIndex(), span.getEndIndex(), entityScores); in generateLinks() local