ma_interpret: Interpret API

View source: R/interpret.R

ma_interpretR Documentation

Interpret API

Description

Interpret API

Usage

ma_interpret(query, count = 10, offset = 0, complete = TRUE, key = NULL, ...)

Arguments

query

(character) query terms

count

(intger) number of records to return. default: 10

offset

(intger) record number to start at. default: 0

complete

(logical) TRUE means that auto-completion suggestions are generated based on the grammar and graph data. default: TRUE

key

(character) microsoft academic API key, see the Authentication section in microdemic-package

...

curl options passed on to crul::HttpClient

References

https://docs.microsoft.com/en-us/academic-services/project-academic-knowledge/reference-interpret-method

Examples

## Not run: 
res <- ma_interpret(query = "papers by jaime'...")
res$query
res$interpretations
res$interpretations$parse
res$interpretations$rules
res$interpretations$rules[[1]]

expr <- res$interpretations$rules[[1]]$output.value
ma_evaluate(expr)

## End(Not run)

ropenscilabs/microdemic documentation built on Sept. 9, 2022, 5:42 p.m.