spot_spot: Spot

Description Usage Arguments Examples

View source: R/calls.R

Description

Spot urls.

Usage

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

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.

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_spot(data))

## End(Not run)

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