Learn R Programming

microdemic (version 0.1.0)

ma_similarity: Similarity API

Description

Similarity API

Usage

ma_similarity(s1, s2, method = "GET", key = NULL, ...)

Arguments

s1, s2

(character) strings 1 and 2. required

method

(character) one of GET (default) or POST

key

(character) microsoft academic API key, see microdemic

...

curl options passed on to crul::HttpClient

Examples

Run this code
# NOT RUN {
s1 <- "Using complementary priors, we derive a fast greedy algorithm that
can learn deep directed belief networks one layer at a time, provided the
top two layers form an undirected associative memory"

s2 <- "Deepneural nets with a large number of parameters are very powerful
machine learning systems. However, overfitting is a serious problem in
such networks"

ma_similarity(s1, s2)

ma_similarity(s1, s2, method = "POST")
# }

Run the code above in your browser using DataLab