-
Notifications
You must be signed in to change notification settings - Fork 532
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
New Alchemy API does not support standard characters #64
Comments
Some other characters that cause it to break: |
I can reproduce the issue.. seems to be something related to how we encode the |
I've added test cases and I think the problem is fixed. AlchemyLanguage service = new AlchemyLanguage();
Map<String, Object> params = new HashMap<String, Object>();
String text = "Mr. Vice President, my old colleague from Massachusetts"+
"and your new Speaker & John McCormack, Members of the 87th Congress, "+
"ladies and gentlemen: -. *&^%$#@!@#$%^&*()";
params.put(AlchemyLanguage.TEXT, text);
Entities entities = service.getEntities(params);
Assert.assertNotNull(entities);
Assert.assertFalse(entities.getEntities().isEmpty()); |
Hello, I know it's a closed issue, but I'm using this simple phrase (without any symbols): And I'm getting the very same error. What could it be? Or how can I solve it? Thanks in advance! |
Hi! I'm also getting the same issue. This is when I use "Stephen Hillenburg". Is there a way I can specify that the input is in english? Thanks! |
Hi, I solved the problem by sending a parameter for the language when making the call: params.put("language", "english"); (params is the Map containing the parameters for the call). Hope it's useful. gc |
I think we can close the issue now. |
I'm going to wait until the next release which is on April 15. |
How we can set language as "English" when making "alchemyObj.TextGetTaxonomy(str)" call to alchemy? |
AlchemyLanguage service = new AlchemyLanguage();
service.setLanguage(LanguageSelection.ENGLISH)
service.taxonomy("type string here") |
@germanattanasio: Thank you for this. I've already setup my code which is using Could you please tell where to set Language in this case ? Thanks!! |
@shmarzooq you are using a different SDK. Look at the README.md in this project and switch to use this SDK. |
@germanattanasio Thank you for pointing it out. I will look into README.md and will see how the switching goes. I just don't want to redo the whole code again. I've almost finished my project using AlchemyAPI (calling AlchemyAPI, passing string, getting text-taxonomies, text-concepts, and parsing the returned XML). Just getting this language issue and rest it's working fine. |
I get
when running text that has characters like
&
in them.I think we either need a definition of supported characters or some automated encoding in the method:
The text was updated successfully, but these errors were encountered: