PYTHON QUESTION! Write a function vowel_consonant_ratio(sentence) that takes an input parameter sentence (type string) a
Posted: Wed Apr 27, 2022 3:42 pm
PYTHON QUESTION!
Write a function vowel_consonant_ratio(sentence) that
takes an input parameter sentence (type string) and:
The formatting for the outputs can be seen in the test
cases.
Cases where your function cannot perform the ratio calculation
should return 0.0
NB: this one's not really a part of the typical NLP processing
pipeline, but it's a fun exercise
For example:
Write a function vowel_consonant_ratio(sentence) that
takes an input parameter sentence (type string) and:
The formatting for the outputs can be seen in the test
cases.
Cases where your function cannot perform the ratio calculation
should return 0.0
NB: this one's not really a part of the typical NLP processing
pipeline, but it's a fun exercise
For example: