I am attempting to create a sentence splitting fragmenter in PyLucene.
I see that the Fragmenter is not a class but a Interface definition.
Is there a way to create a new Fragmenter type that PyLucene can
access via
highlighter.setTextFragmenter(SentenceFragmenter()) ?
I have tried to create a Python class that looks like
class SentenceFragmenter:
def start(self, text):
#stuff
def isNewFragment(self,token):
#stuff
but I get a InvalidArgsError in the setTextFragmenter call..
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev