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

Hardcoded punctuation character pattern in textProcessor #267

Open
Derek-Jones opened this issue Jan 25, 2022 · 0 comments
Open

Hardcoded punctuation character pattern in textProcessor #267

Derek-Jones opened this issue Jan 25, 2022 · 0 comments

Comments

@Derek-Jones
Copy link

The punctuation character pattern in textProcessor is hard coded, i.e., gsub("[^[:alnum:]///' ]", " ", doc), which is rather inflexible. A more flexible implementation would have the pattern initialised as a named parameter. Passing a "" could then be used to switch off punctuation removal.

For a use-case, source code variables sometimes include underscores, and it might be worth keeping the variable name intact.

Some example data: https://github.com/Derek-Jones/SiP_dataset

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