alan-turing-institute / netts

Toolbox for creating networks capturing semantic content of speech transcripts.
https://alan-turing-institute.github.io/netts/
GNU General Public License v3.0
8 stars 1 forks source link

BUG: expand_contractions doesn't (does not) behave as expected #71

Closed OscartGiles closed 3 years ago

OscartGiles commented 3 years ago

Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.

Code Sample, a copy-pastable example

These asserts are True:

from netspy.nlp_helper_functions import expand_contractions

expand_contractions("ain't") != "is not"
expand_contractions("ain't") == "as not"

Problem description

Expected Output

The first assertion should be True and the second False