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

Error while processing some input strings (batch processing) #23

Open
gersh0m opened this issue Oct 18, 2019 · 0 comments
Open

Error while processing some input strings (batch processing) #23

gersh0m opened this issue Oct 18, 2019 · 0 comments
Assignees

Comments

@gersh0m
Copy link
Member

gersh0m commented Oct 18, 2019

Three types of input cause error ('segmentation fault') in batch mode:

  • strings containing backslash character '\'
  • strings containing some non ascii (further investigation needed to know exactly)
  • strings longer than 30 characters

A quick workaround is to filter input file in advance (note that the filtered out words would not be analyzed anyway) for example with this simple cascade of sed command in bash

LANG=C sed  's/\\/ /g' input_file  | sed -E  "s/[^\x00-\x7F]+/ /g" |\
 sed 's/[-_\/\$[:alnum:]]\{30,\}/ /g' > alt_input_file

THANX TO Enrique

@gersh0m gersh0m self-assigned this Oct 18, 2019
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