Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

amcat.gettokens returns empty #8

Open
decenergy opened this issue Apr 12, 2016 · 5 comments
Open

amcat.gettokens returns empty #8

decenergy opened this issue Apr 12, 2016 · 5 comments

Comments

@decenergy
Copy link

Hi, I have problems related to get the tokens from articles at the amcat server using R. The output of amcat.gettokens is an empty data frame. I got the tokens for some articlesets before using the exact line of coding but it does not seem to work anymore. Other amcat functions work (e.g. amcat.hits, amcat.getarticlemeta). Any idea what's going wrong?

``` >library(amcatr)`

conn = amcat.connect("https://amcat.nl")
library(corpustools)
t = amcat.gettokens(conn, project=914, articleset = 23894, module = `"corenlp")
#GET https://amcat.nl/api/v4/projects/914/articlesets/23894/tokens/?page=1&module=corenlp&page_size=1&format=csv

head(t)
#NULL

@decenergy decenergy changed the title amcat.gettokens amcat.gettokens returns empty Apr 12, 2016
@vanatteveldt
Copy link
Member

Hey Jeroen,

Sorry, I didn't see the issue immediately.

The problem is that lemmatization/parsing doesn't happen automatically anymore. I'll run them through corenlp (again), and then the function should work again.

-- Wouter

@decenergy
Copy link
Author

decenergy commented May 2, 2016

Thanks for your response. Let me know when you have been able to fix it.

@vanatteveldt
Copy link
Member

They should be done now, see https://amcat.nl/api/v4/projects/914/articlesets/23894/preprocess/. Reopen the issue if the problem persists

@decenergy
Copy link
Author

I am not sure what to do with the link but the function does not seem to be working yet for me. The following error message still occurs:

> test=amcat.gettokens(conn, project=914, articleset =23894, module = "corenlp")
GET https://amcat.nl/api/v4/projects/914/articlesets/23894/tokens/?module=corenlp&page_size=1&format=rda&page=1
Error in amcat.getURL(conn, path, page_filters, post = post, post_options,  : 
  Unexpected Response Code 400
It looks like you did something wrong, or there is something wrong in the amcat-r library. Please check your command and the error message below, or create an issue at http://github.com/amcat/amcat-r/issues
ValidationError: Module corenlp not known

@vanatteveldt vanatteveldt reopened this May 9, 2016
@decenergy
Copy link
Author

Any progress?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants