opennlp.grok.preprocess.namefind
Class WebStuffDetector
java.lang.Object
|
+--opennlp.grok.preprocess.namefind.WebStuffDetector
- All Implemented Interfaces:
- opennlp.common.preprocess.Pipelink
- public class WebStuffDetector
- extends java.lang.Object
- implements opennlp.common.preprocess.Pipelink
Find web-related strings in a text and mark them. Pretty simple at the
moment but should cover a lot of cases.
- Version:
- $Revision: 1.2 $, $Date: 2002/02/11 16:21:24 $
- Author:
- Jason Baldridge
Method Summary |
boolean |
isEmail(java.lang.String s)
|
boolean |
isUrl(java.lang.String s)
|
void |
process(opennlp.common.xml.NLPDocument doc)
Find the email addresses in a document. |
java.util.Set |
requires()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebStuffDetector
public WebStuffDetector()
isUrl
public boolean isUrl(java.lang.String s)
isEmail
public boolean isEmail(java.lang.String s)
process
public void process(opennlp.common.xml.NLPDocument doc)
- Find the email addresses in a document.
- Specified by:
process
in interface opennlp.common.preprocess.Pipelink
requires
public java.util.Set requires()
- Specified by:
requires
in interface opennlp.common.preprocess.Pipelink
Copyright © 2003 Jason Baldridge and Gann Bierner. All Rights Reserved.