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

String preprocessor account regex catches only fully-capitalized/numeric account handles #22

Open
CogentMentat opened this issue Apr 29, 2024 · 0 comments

Comments

@CogentMentat
Copy link

In tweetnlp/tweetnlp/util.py, the get_preprocessor function for unknown preprocessor type replaces user handles like so:

text = re.sub(r"@[A-Z,0-9]+", "@user", text)

but this catches only capitalized alphanumeric handles.

I have never submitted a pull request before, so if you want to let me try it out I can submit one - if of course you agree with the problem!

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