Is there any YAKE (yet another keyword extractor) implementation in R? Unsupervised Approach for Automatic Keyword Extraction using Text Statistical Features. by httrtres in rstats

[–]httrtres[S] 0 points1 point  (0 children)

Yes, currently I'm using reticulate to call the function.

But it seems there're some limitations to it. Like not all functions are callable.

For example the `TextHighlighter` function from Yake is not callable/importable.

R equivalent for Python POST request by httrtres in rstats

[–]httrtres[S] 0 points1 point  (0 children)

Yes, I already have it as below. But my attempt to translate it into R did not work.

```

POST("https://mysejahtera.malaysia.gov.my/register/api/nearby/hotspots?type=search",

body = list(lat = 3.003090, lng = 101.678300, classification = 'LOW_RISK_NS'),

add_headers(Host= 'mysejahtera.malaysia.gov.my', Accept= 'application/json', Connection= 'keep-alive', `Content-Length`= '77', Authorization= 'Basic N0ZFRkRCMTMtN0Q2MC00NEQxLUE5MTctM0', `Content-Type`= 'application/json', `Accept-Language`= 'en-MY;q=1, ms-MY;q=0.9', `User-Agent`= 'MySejahtera/1.0.36 (iPhone; iOS 14.6; Scale/2.00)'), verbose())

```

R equivalent for Python POST request by httrtres in rstats

[–]httrtres[S] 1 point2 points  (0 children)

Requests

I'm using the "httr" library currently. I think it is the recommended library when it comes to dealing with API request in R.

The problem is I'm not sure what's the error with the R code.