deepsegment
deepsegment copied to clipboard
"WARNING:root:Consider using segment_long" when actually using segment_long
Bug description
I am using segment_long to segment a relatively long paragraph, and despite using this specific function I am getting a repeated warning that reads
WARNING:root:Consider using segment_long for longer sentences.
Snippet which gave this bug
from deepsegment import DeepSegment
segmenter = DeepSegment('en')
...
resegmented = segmenter.segment_long(a_mod)
Specify versions of the following libraries
- deepsegment==2.3.1
- tensorflow==2.2.0
- keras==2.3.1
Expected behavior No warnings at all, given I'm using the suggested function.
Screenshots

Notes
This warning message seems to by-pass warnings.filterwarnings('ignore').
@uguryavuz I will look into this. Meanwhile,
import logging
logging.basicConfig(level=logging.ERROR)
adding this before deepsegment import will disable warnings.