@Controller @RequestMapping(value="/annotators") public class AnnotatorController extends Object
| Constructor and Description |
|---|
AnnotatorController() |
| Modifier and Type | Method and Description |
|---|---|
String |
annotateData(String[] annotatorNames,
String entityName,
boolean createCopy)
Annotates a dataset based on selected dataset and selected annotators.
|
Map<String,Map<String,Object>> |
getMapOfAvailableAnnotators(String dataSetName)
Gets a map of all available annotators.
|
ErrorMessageResponse |
handleRuntimeException(RuntimeException e) |
public static final String URI
@RequestMapping(value="/get-available-annotators",
method=POST)
@ResponseBody
public Map<String,Map<String,Object>> getMapOfAvailableAnnotators(@RequestBody
String dataSetName)
dataSetName - @RequestMapping(value="/annotate-data",
method=POST)
@ResponseBody
@Transactional
public String annotateData(@RequestParam(value="annotatorNames",required=false)
String[] annotatorNames,
@RequestParam(value="dataset-identifier")
String entityName,
@RequestParam(value="createCopy",required=false)
boolean createCopy)
annotatorNames - entityName - createCopy - @ExceptionHandler(value=java.lang.RuntimeException.class) @ResponseBody @ResponseStatus(value=INTERNAL_SERVER_ERROR) public ErrorMessageResponse handleRuntimeException(RuntimeException e)
Copyright © 2015. All Rights Reserved.