
public abstract class AlchemyCommon extends AbstractNER
| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.configuration.XMLConfiguration |
CFG
http://www.alchemyapi.com/api/entity/textc.html
1: HTTP POST calls should include the Content-Type header: application/x-www-form-urlencoded
2: Posted text documents can be a maximum of 50 kilobytes. |
entityClasses, entityList, inputcdl, cfgManager, LOG, versions| Constructor and Description |
|---|
AlchemyCommon()
Sets types.
|
| Modifier and Type | Method and Description |
|---|---|
protected List<Entity> |
alchemyNERResponseParser(org.json.JSONObject o) |
List<Entity> |
retrieve(String input)
Retrieves Entity objects from the give input String with sentences as plain text.
|
protected List<Entity> |
retrieveSentences(List<String> sentences) |
protected void |
setTypes() |
_retrieve, clean, getEntity, getResults, getSentences, mapTypeToSupportedType, run, setInputgetToolName, getToolVersion, getToolVersion, setCountDownLatchclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetToolName, getToolVersion, setCountDownLatchpublic static final org.apache.commons.configuration.XMLConfiguration CFG
public List<Entity> retrieve(String input)
INERretrieve in interface INERretrieve in class AbstractNERinput - sentences as plain textprotected void setTypes()
Copyright © 2024. All rights reserved.