I'm new and super excited about doing stuff directly from the console! : )
Today I was playing around with the meaningcloud API for Lemmatization etc. and it is working great when I input text directly into the URL as a parameter like txt=here%20my%20text
.
However, when trying to feed input from a file, using the doc=
parameter as described in their docs, I keep getting the following response:
{"status":{"code":"200","msg":"Missing required parameter(s) - [txt]", ...
The docs read that I can use either doc
, url
or txt
as parameter to specify the source of the text input, but it seems I am doing something wrong here.
I tried around for a while with different versions of absolute and relative paths, but couldn't figure out how to get it to take input directly from a file.
Here's one example call that I was making, maybe someone can point me to my error (In the real calls I have my API key in there instead of {my_key_here}
!):
curl -K -XPOST "https://api.meaningcloud.com/parser-2.0?key={my_key_here}&of=json&lang=es&doc=Users/Martin/Documents/text.txt" >> output.json
I tried the more general answers here but just got the same error response. I'm wondering whether this is a general error of mine, or whether it's specific to the API.
Thanks for any tips!