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

Help with Openregex constructs #14

Open
p6jain opened this issue Jan 6, 2014 · 2 comments
Open

Help with Openregex constructs #14

p6jain opened this issue Jan 6, 2014 · 2 comments

Comments

@p6jain
Copy link

p6jain commented Jan 6, 2014

  1. Can we use ? construct as reluctant quantifier (as it is in normal java regular expressions) too?
  2. Why does the following regular expression doesn't pick "is found" from the specified string.
    I am assuming that <string='.'>* means zero or more string of any length.
    Regular expression:
    < string='but' > < string='now' > < string='.
    ' > * ( < pos='VB.?' > * )
    Sentence:
    He was lost , but now he is found.
@schmmd
Copy link
Member

schmmd commented Jan 8, 2014

  1. No
  2. I don't think string='.*' is applying .* as a Java regular expression.

If you are applying OpenRegex to chunked sentence text, you might want to take a look a https://github.com/knowitall/taggers

@schmmd
Copy link
Member

schmmd commented Jan 8, 2014

Sorry, I just corrected that link for you: https://github.com/knowitall/taggers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants