-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathINER.java
40 lines (34 loc) · 866 Bytes
/
INER.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package org.aksw.fox.tools.ner;
import java.util.List;
import org.aksw.fox.data.Entity;
import org.aksw.fox.tools.ITool;
/**
* An interface for the use of a ner tool.
*
* The method {@link #retrieve(String input)} can be used to get the result list of {@link Entity}
* objects.
*
* @author rspeck
*
*/
public interface INER extends ITool {
/**
* Retrieves Entity objects from the give input String with sentences as plain text.
*
* @param input sentences as plain text
* @return list entities
*/
public List<Entity> retrieve(String input);
/**
* Sets the input with sentences as plain text.
*
* @param input
*/
public void setInput(String input);
/**
* Returns results. Uses the {@link #retrieve(String input)} method to get the result list.
*
* @return results
*/
public List<Entity> getResults();
}