Skip to content

Instantly share code, notes, and snippets.

@eclarke
Created May 1, 2012 21:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eclarke/2571570 to your computer and use it in GitHub Desktop.
Save eclarke/2571570 to your computer and use it in GitHub Desktop.
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