Skip to content

[BUG] Text cleaning raising exception #141

@lalitpagaria

Description

@lalitpagaria

While running cleaning on reviews of AirIndia's iOS and Android app reviews getting following exception

TypeError: unsupported operand type(s) for +: 'int' and 'str'
Traceback:
File "/usr/local/lib/python3.9/site-packages/streamlit/script_runner.py", line 338, in _run_script
    exec(code, module.__dict__)
File "/usr/local/lib/python3.9/site-packages/obsei/preprocessor/text_cleaner.py", line 54, in preprocess_input
    tokens = cleaning_function.execute(tokens)
File "/usr/local/lib/python3.9/site-packages/obsei/preprocessor/text_cleaning_function.py", line 112, in execute
    _, fuzzy_tokens = parse(text, fuzzy_with_tokens=True)  # type: ignore
File "/usr/local/lib/python3.9/site-packages/dateutil/parser/_parser.py", line 1374, in parse
    return DEFAULTPARSER.parse(timestr, **kwargs)
File "/usr/local/lib/python3.9/site-packages/dateutil/parser/_parser.py", line 657, in parse
    six.raise_from(ParserError(e.args[0] + ": %s", timestr), e)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions