com.knowledgebooks.utils
Class OpenCalaisClient
java.lang.Object
com.knowledgebooks.utils.OpenCalaisClient
public class OpenCalaisClient
- extends java.lang.Object
This is a web services client class for using the Open Calias web service
for analysizing text and identifying entities and relationships between
entities. You will need a free Open Calais developer's key that should
be set in an environment variable of defined on the command line when starting
the JVM. This property is obtained using: System.getProperty("OPEN_CALAIS_KEY")
Using Open Calias is optional since KB_bundle includes its own named entity
extractor in class Names
Copyright 2002-2008 by Mark Watson. All rights reserved.
This software is not public domain. It can be legally
used under either of the following licenses:
1. KnowledgeBooks.com Non Commercial Royality Free License
2. KnowledgeBooks.com Commercial Use License
see www.knowledgebooks.com for details
|
Method Summary |
java.util.Hashtable<java.lang.String,java.lang.String[]> |
getPropertyNamesAndValues(java.lang.String text)
A client program to use Reuters News Ope Calais web service. |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OpenCalaisClient
public OpenCalaisClient()
getPropertyNamesAndValues
public java.util.Hashtable<java.lang.String,java.lang.String[]> getPropertyNamesAndValues(java.lang.String text)
- A client program to use Reuters News Ope Calais web service. This can be
used as an alternative to the internale KnowledgeBookscom entity extraction
classes.
- Parameters:
text -
- Returns:
- Hashtable of properties with associated values list (e.g., property "Person", value list would be a list of names occurring in the input text other properties can be "City","State", "Country", etc.)
main
public static void main(java.lang.String[] args)
- Parameters:
args -