spot_annotate: Annotate

Description Usage Arguments Examples

View source: R/calls.R

Description

Annotate entities.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
spot_annotate(
  text,
  url = NULL,
  confidence = NULL,
  support = NULL,
  types = NULL,
  sparql = NULL,
  policy = NULL,
  tidy = TRUE
)

Arguments

text

A data.frame containing a column named "text" or a vector of class character.

url

URL to be annotated.

confidence

Confidence score for disambiguation / linking.

support

How prominent is this entity in Lucene Model, i.e. number of inlinks in Wikipedia.

types

Types filter (Eg.:DBpedia:Place).

sparql

SPARQL filtering.

policy

(whitelist) select all entities that have the same type; (blacklist) - select all entities that have not the same type.

tidy

If TRUE returns a tibble by using tidy_annotations.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
data <- data.frame(
  text = c(
    "This text is about France.",
    "This text is about Ecology."
  )
)

(results <- spot_annotate(data))

## End(Not run)

news-r/spotlight documentation built on Feb. 29, 2020, 5:11 a.m.