我不明白为什么我会得到这个错误
curl -X POST --user "apikey:<<key>>" --form "file=@/C/Users/sekim/Downloads/Letter to Mama Vincent.pdf" --form "source=en" --form "target=fr" https://gateway.watsonplatform.net/language-translator/api/v3/documents?version=2018-05-01
curl: (26) couldn't open file "/C/Users/sekim/Downloads/Letter to Mama Vincent.pdf"发布于 2019-11-19 10:51:37
我认为问题出在您对C:驱动器的引用进行格式化的方式。
试试这个:
curl -X POST --user "apikey:<<key>>" --form "file=@C:/Users/sekim/Downloads/Letter to Mama Vincent.pdf" --form "source=en" --form "target=fr" https://gateway.watsonplatform.net/language-translator/api/v3/documents?version=2018-05-01(另外:最好不要在这里张贴你的API密钥)
https://stackoverflow.com/questions/58925605
复制相似问题