Hi,

  I am trying to write up a new summarizer plugin.  I want to use a
series of regular expressions to segment my excerpts; something like:

    String pattern = "^r.*";  //some regex pattern
    if(tokens[i].termText().matches(pattern)){
          do something;
    }

  This works for alphanumeric expressions, but doesn't seem to work
for escape characters. The above expression will parse, but something
like
    String pattern = ".*\\.$";

will not parse.

  Is this because of the way the default analyzer stores tokens, and
none of these punctuation marks come up in the token stream??

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nutch-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-general

Reply via email to