public class VerbOceanExtractor extends AbstractExtractor implements WandoraTool
renounce [stronger-than] abandon :: 13.617344
reject [happens-before] abandon :: 11.731130
abandon [similar] reject :: 12.048992
abandon [similar] scrap :: 13.725957
More about VerbOcean see http://demo.patrickpantel.com/Content/verbocean/ or paper
Timothy Chklovski and Patrick Pantel. 2004.VerbOcean: Mining the Web for Fine-Grained Semantic Verb Relations. In Proceedings of Conference on Empirical Methods in Natural Language Processing (EMNLP-04). Barcelona, Spain.
| Modifier and Type | Field and Description |
|---|---|
private Wandora |
admin |
static java.lang.String[] |
contentTypes |
(package private) boolean |
INCLUDE_STRENGHTS |
(package private) java.lang.String |
SI_BASE |
private java.io.File |
verbOceanFile |
CUSTOM_EXTRACTOR, DONE_FAILED, DONE_MANY, DONE_ONE, EXACTLY_GIVEN_URLS, FILE_EXTRACTOR, FILE_PATTERN, GIVEN_URLS_AND_ALL_CRAWLED_DOCUMENTS, GIVEN_URLS_AND_CRAWLED_DOCUMENTS_IN_URL_DOMAIN, GIVEN_URLS_AND_LINKED_DOCUMENTS, GIVEN_URLS_AND_URL_BELOW, INFO_WAIT_WHILE_WORKING, LOG_TITLE, POINT_START_URL_TEXT, RAW_EXTRACTOR, SELECT_DIALOG_TITLE, STRING_EXTRACTOR_NOT_SUPPORTED_MESSAGE, URL_EXTRACTORCLOSE, EXECUTE, INVISIBLE, VISIBLE, WAITRETURN_ERROR, RETURN_INFO| Constructor and Description |
|---|
VerbOceanExtractor()
Creates a new instance of VerbOceanExtractor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
_extractTopicsFrom(java.io.File file,
TopicMap topicMap) |
boolean |
_extractTopicsFrom(java.lang.String str,
TopicMap tm) |
boolean |
_extractTopicsFrom(java.net.URL url,
TopicMap topicMap) |
void |
_extractTopicsFromStream(java.lang.String locator,
java.io.InputStream inputStream,
TopicMap topicMap) |
boolean |
browserExtractorConsumesPlainText() |
Association |
createAssociation(java.lang.String associationType,
Topic player1Topic,
java.lang.String role1,
Topic player2Topic,
java.lang.String role2,
TopicMap topicMap) |
Association |
createAssociation(java.lang.String associationType,
Topic player1Topic,
java.lang.String role1,
Topic player2Topic,
java.lang.String role2,
Topic player3Topic,
java.lang.String role3,
TopicMap topicMap) |
java.lang.String[] |
getContentTypes()
Returns an array of String containing the content-types this
ContentHandler can process. |
java.lang.String |
getDescription()
AdminToolManager views tool descriptions while user browses available
tools and build user customizable GUI elements such as Tools menu.
|
java.lang.String |
getGUIText(int textType) |
java.lang.String |
getName()
Tools name represent the tool in UI unless the tool has been given
explicitly another GUI name.
|
Topic |
getOrCreateTopic(java.lang.String name,
java.lang.String path,
TopicMap topicMap) |
boolean |
useTempTopicMap() |
acceptBrowserExtractRequest, addCrawlerUrl, buildSI, buildSL, clearMasterSubject, createAssociation, createAssociation, createTopic, createTopic, createTopic, createTopic, createTopic, createTopic, createTopic, croppedFilename, croppedFilename, croppedUrlString, croppedUrlString, doBrowserExtract, dropExtract, dropExtract, dropExtract, execute, extractTopicsFrom, extractTopicsFrom, extractTopicsFrom, extractTopicsFrom, extractTopicsFromText, getBrowserExtractorName, getCrawlerMode, getExtractorType, getForceContent, getForceFiles, getForceUrls, getGUIText, getIcon, getInterruptsHandled, getMasterSubject, getType, getWandora, handle, handleContent, handleCustomType, handleFiles, handleForcedContent, handleInterrupt, handleStringContent, handleUrls, initializeCustomType, instantDropHandle, makeSubclassOfWandoraClass, runInOwnThread, setData, setDisplayName, setForceContent, setForceFiles, setForceUrls, setMasterSubject, setMasterSubject, setTopicMap, setupCrawler, setWandora, takeNap, urlEncode, useURLCrawleraddUndoMarker, addUndoMarker, allowMultipleInvocations, clearAllThreads, clearThreads, clearThreads, clearToolLock, clearToolLock, clearToolLocks, configure, execute, execute, forceStop, forceStop, getContext, getCurrentLogger, getDefaultLogger, getHistory, getLastLogger, getState, getThreads, getThreads, getToolMenuItem, getToolMenuItem, getTopicName, hlog, initialize, interruptAllThreads, interruptThreads, interruptThreads, isConfigurable, isRunning, isRunning, lockLog, log, log, log, log, requiresRefresh, run, setContext, setDefaultLogger, setLogTitle, setProgress, setProgressMax, setState, setToolLogger, singleLog, singleLog, singleLog, solveContextTopicMap, solveNameForTopicMap, writeOptionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconfigure, execute, execute, execute, getContext, getIcon, getToolMenuItem, getType, hlog, initialize, isConfigurable, isRunning, log, log, log, log, requiresRefresh, setContext, setToolLogger, writeOptionsforceStop, getHistory, getState, lockLog, setLogTitle, setProgress, setProgressMax, setStateboolean INCLUDE_STRENGHTS
private Wandora admin
private java.io.File verbOceanFile
java.lang.String SI_BASE
public static final java.lang.String[] contentTypes
public VerbOceanExtractor()
public java.lang.String getName()
AbstractWandoraToolgetName in interface WandoraToolgetName in class AbstractExtractorpublic java.lang.String getDescription()
AbstractWandoraToolgetDescription in interface WandoraToolgetDescription in class AbstractExtractorpublic boolean useTempTopicMap()
useTempTopicMap in class AbstractExtractorpublic java.lang.String getGUIText(int textType)
getGUIText in class AbstractExtractorpublic boolean browserExtractorConsumesPlainText()
browserExtractorConsumesPlainText in class AbstractExtractorpublic boolean _extractTopicsFrom(java.net.URL url,
TopicMap topicMap)
throws java.lang.Exception
_extractTopicsFrom in class AbstractExtractorjava.lang.Exceptionpublic boolean _extractTopicsFrom(java.io.File file,
TopicMap topicMap)
throws java.lang.Exception
_extractTopicsFrom in class AbstractExtractorjava.lang.Exceptionpublic boolean _extractTopicsFrom(java.lang.String str,
TopicMap tm)
throws java.lang.Exception
_extractTopicsFrom in class AbstractExtractorjava.lang.Exceptionpublic void _extractTopicsFromStream(java.lang.String locator,
java.io.InputStream inputStream,
TopicMap topicMap)
public Topic getOrCreateTopic(java.lang.String name, java.lang.String path, TopicMap topicMap)
public Association createAssociation(java.lang.String associationType, Topic player1Topic, java.lang.String role1, Topic player2Topic, java.lang.String role2, TopicMap topicMap) throws TopicMapException
TopicMapExceptionpublic Association createAssociation(java.lang.String associationType, Topic player1Topic, java.lang.String role1, Topic player2Topic, java.lang.String role2, Topic player3Topic, java.lang.String role3, TopicMap topicMap) throws TopicMapException
TopicMapExceptionpublic java.lang.String[] getContentTypes()
HandlerContentHandler can process.getContentTypes in interface HandlergetContentTypes in class AbstractExtractorCopyright 2004-2015 Wandora Team