Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.

"WARNING:root:Consider using segment_long" when actually using segment_long #34

Open
uguryavuz opened this issue Jul 2, 2020 · 1 comment
Assignees

Comments

@uguryavuz
Copy link

uguryavuz commented Jul 2, 2020

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

  1. deepsegment==2.3.1
  2. tensorflow==2.2.0
  3. keras==2.3.1

Expected behavior
No warnings at all, given I'm using the suggested function.

Screenshots
Screen Shot 2020-07-02 at 17 11 09

Notes
This warning message seems to by-pass warnings.filterwarnings('ignore').

@bedapudi6788 bedapudi6788 self-assigned this Jul 3, 2020
@bedapudi6788
Copy link
Collaborator

@uguryavuz I will look into this.
Meanwhile,

import logging
logging.basicConfig(level=logging.ERROR)

adding this before deepsegment import will disable warnings.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants