Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
apache http client inanity
postParams.add(new BasicNameValuePair("longestOnly","false"));
postParams.add(new BasicNameValuePair("wholeWordOnly","true"));
postParams.add(new BasicNameValuePair("filterNumber", "true"));
postParams.add(new BasicNameValuePair("stopWords","protein,gene,disease,disorder,cell,syndrome,CAN"));
postParams.add(new BasicNameValuePair("withDefaultStopWords","true"));
postParams.add(new BasicNameValuePair("isTopWordsCaseSensitive","false"));
postParams.add(new BasicNameValuePair("mintermSize","3"));
postParams.add(new BasicNameValuePair("scored", "true"));
postParams.add(new BasicNameValuePair("withSynonyms","true"));
postParams.add(new BasicNameValuePair("ontologiesToExpand", ""));
postParams.add(new BasicNameValuePair("ontologiesToKeepInResult", "1009"));
postParams.add(new BasicNameValuePair("isVirtualOntologyId", "true"));
postParams.add(new BasicNameValuePair("semanticTypes", ""));
postParams.add(new BasicNameValuePair("levelMax", "0"));
postParams.add(new BasicNameValuePair("mappingTypes", "null")); //null, Automatic
postParams.add(new BasicNameValuePair("textToAnnotate", text));
postParams.add(new BasicNameValuePair("format", "tabDelimited")); //Options are 'text', 'xml', 'tabDelimited'
postParams.add(new BasicNameValuePair("apikey", apiKey));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment