Assigned
Status Update
Comments
mi...@google.com <mi...@google.com> #2
I have one question related to Google translate API. but it is not related to this issue.
When i am trying to access Google Translate API using javascript when the query string size is around 13000 characters i am getting server response error code 400. Can you please let me know what is the request size limit if any exist.
When i am trying to access Google Translate API using javascript when the query string size is around 13000 characters i am getting server response error code 400. Can you please let me know what is the request size limit if any exist.
oy...@gmail.com <oy...@gmail.com> #3
@vrames
according to Google API FAQ
The maximum size of each text to be translated is 5000 characters, not including any HTML tags.
according to Google API FAQ
The maximum size of each text to be translated is 5000 characters, not including any HTML tags.
ni...@gmail.com <ni...@gmail.com> #4
N/A
aj...@gmail.com <aj...@gmail.com> #5
I also have a same problem some html tags who are divided in few tags , and it's problematic .. there is some news about it ??
ku...@accenture.com <ku...@accenture.com> #6
I met with the problem just now, it seems the bug nof fixed yet.
kr...@google.com <kr...@google.com> #7
Update: I found the bug triggered not only by anchor tag, but also others. It seems that the problem is the context, and when I replace the tag with special symbol, 【】 for example, it worked.
In some context:
<a id="text">bla bla...</a> -> <a id="text">alb</a>alb<a id="text">...</a>
after change anchor tag to 【】,it worked:
【bla bla ...】 -> 【alb alb ...】
In some context:
<a id="text">bla bla...</a> -> <a id="text">alb</a>alb<a id="text">...</a>
after change anchor tag to 【】,it worked:
【bla bla ...】 -> 【alb alb ...】
Description
When you add the "spacy" library [1] as a dependency in the setup.py file, it fails with the following error when creating a version with custom routines:
ERROR: (gcloud.beta.ai-platform.versions.create) Create Version failed. Bad model detected with error: "There was a problem processing the user code: predictor.MyPredictor cannot be found. Please make sure (1) prediction_class is the fully qualified function name, and (2) it uses the correct package name as provided by the package_uris: ['gs://PATH_TO_PACKAGE'] (Error code: 4)"
Note: "predictor.MyPredictor" is the predictor-class path used for the custom routine.
Other information (workarounds you have tried, documentation consulted, etc):
Packaging spacy in a tarball and deploy it with the package-uris fails with the same error.