Skip to content

Add regex to fix comma bug#36

Open
jnelson16 wants to merge 1 commit into
akshaynagpal:masterfrom
jnelson16:regex_split
Open

Add regex to fix comma bug#36
jnelson16 wants to merge 1 commit into
akshaynagpal:masterfrom
jnelson16:regex_split

Conversation

@jnelson16
Copy link
Copy Markdown

Commas between numbers were not being recognized because of the way the words were being split. This pull request uses re.findall() to split the sentence into words, ignoring commas and other punctuation between the words.

@jnelson16 jnelson16 changed the title add regex to fix comma bug Add regex to fix comma bug May 24, 2019
@codecov
Copy link
Copy Markdown

codecov Bot commented May 24, 2019

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (master@33aac8a). Learn more about missing BASE report.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #36   +/-   ##
=========================================
  Coverage          ?   96.85%           
=========================================
  Files             ?        2           
  Lines             ?      127           
  Branches          ?        0           
=========================================
  Hits              ?      123           
  Misses            ?        4           
  Partials          ?        0           
Files with missing lines Coverage Δ
unit_testing.py 100.00% <100.00%> (ø)
word2number/w2n.py 95.18% <100.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 33aac8a...0af820e. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Successfully merging this pull request may close these issues.

1 participant