Closed HarikalarKutusu closed 1 year ago
Hmm... at the moment it works like this:
import cvutils as cvu
cv: cvu.CV = cvu.CV()
print('tr' in cv.validators())
print('nhi' in cv.validators())
$ python3 /tmp/test.py
True
False
But we could definitely implement some utility functions too, they should probably go in __init__.py
.
Hmm... at the moment it works like this:
Oh, of course :) Thanks...
Can we close this?
Sure, thanks for the tip...
Currently commonvoice-utils returns a list of paths if you want to check if e.g. segmentation is supported by a language, thus you need to scan the list to get a result. Like:
It would be very helpful to have utility functions like cvu.hasValidator(lc) or cvu.hasTokenizer(lc) which does the same out of the box.