Class SpotlightUtil
- java.lang.Object
-
- edu.upf.taln.dri.common.connector.spotlight.SpotlightUtil
-
public class SpotlightUtil extends Object
Collection of utility methods to access the DBpedia Spotlight Disambiguation & Entity Linking service.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CITYtype
static String
LOCATIONtype
static String
ORGANIZATIONtype
static String
STATEtype
static Integer
waitTimeAfterRequestInSeconds
-
Constructor Summary
Constructors Constructor Description SpotlightUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
Compare Bing search result numbers for different queriesstatic Map<String,String>
spotTextOrganization(String text, Integer timeourInSecods, String URLencodedTypes)
Spot organization / location / city / state mentions in text
-
-
-
Method Detail
-
spotTextOrganization
public static Map<String,String> spotTextOrganization(String text, Integer timeourInSecods, String URLencodedTypes)
Spot organization / location / city / state mentions in text- Parameters:
text
- text to parsetimeourInSecods
- connection timeoutURLencodedTypes
- type of mention to spot- Returns:
-
main
public static void main(String[] args)
Compare Bing search result numbers for different queries- Parameters:
args
-
-
-