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

TokensRegex cannot detect rules cross special symbols, eg. '.' or ',' #1457

Open
lilyclemson opened this issue Jul 15, 2024 · 0 comments
Open

Comments

@lilyclemson
Copy link

lilyclemson commented Jul 15, 2024

  • I have a test string "I live in 123 Pretty RD, APT. # 456." and expected to parse the apartment address out using below rules:

{ ruleType: "tokens", pattern: ( /[0-9]+/ /([A-Z][A-Za-z]+[ ,]?)/+ /[Ave|St|Blvd|Apt|APT|RD]+[,.]?/ /# [0-9]+/), action: Annotate($0, ner, "APT"), result:"APARTMENT"}

  • However, it looks like TokensRegex cannot detect rules cross special symbols, eg. '.' or ','

  • The original issue was TokensRegex cannot detect rules cross the period '.'  #1396. It was closed by a fix in V4.5.6. It seems like I cannot reopen the issue. Thus create a new issue for it. Please let me know if there is a way to reopen it.

Please help take a look into this issue. Thank you!

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

1 participant