Added filter by wordcount function#290
Conversation
There was a problem hiding this comment.
🚀 First Pull Request 🎉
Welcome to Senselab, and thank you for submitting your first pull request! We’re thrilled to have your contribution. Our team will review it as soon as possible. Stay engaged, and let’s make behavioral data analysis even more powerful together!
|
@Veronika271 can you add a unit test for this? |
Nice!:) @Veronika271 feel free to call him Fabio--he prefers that as far as I know:) |
|
In your unit test, you can pass an audio sample like this--we have it configured this way for convenience |
|
@Veronika271 see all the audio samples you can use here: |
ibevers
left a comment
There was a problem hiding this comment.
Thanks for adding unit tests:)
…or-not-the-number-of-words-falls-within-a-certain-range
|
@Veronika271 I think this functionality would fit better within the
|
…or-not-the-number-of-words-falls-within-a-certain-range
Description
Wrote a method that counts the number of words in a speech sample and then returns True if the number of words falls within a specified range, and False otherwise.
Related Issue(s)
#289
Motivation and Context
Sometimes people talk very little, especially when they are struggling with certain mood disorders. I'm worried that if we don't get a sufficiently long voice sample, it will be hard to draw any conclusions due to small sample size.
How Has This Been Tested?
I tested it locally on a toy example and showed it to Dr. Catania!