Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a DefaultChunkerMaker which would accept a dict for partial equality on key #3

Open
PonteIneptique opened this issue Oct 1, 2015 · 0 comments

Comments

@PonteIneptique
Copy link
Member

See #2

The idea is not to force every one to go through regexp. Instead of doing that, we offer a chunker maker in the following form

def RegExDefaultChunkerMaker(config):
   """
   :param config: Dictionary with keys such as the original
   :type config: dict
   """
   def callback(text, getValidReffCallback):
       # do regexp matching on key
       if match(text.urn, config.keys()):
           return specificfunction
       return config["default"](text, getValidReffCallback)
   return callback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant