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, input
cdl, 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, setInput
getToolName, getToolVersion, getToolVersion, setCountDownLatch
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getToolName, getToolVersion, setCountDownLatch
public static final org.apache.commons.configuration.XMLConfiguration CFG
public List<Entity> retrieve(String input)
INER
retrieve
in interface INER
retrieve
in class AbstractNER
input
- sentences as plain textprotected void setTypes()
Copyright © 2024. All rights reserved.