nltk.text_type.isnumeric

text_type.isnumeric() → bool

Return True if there are only numeric characters in S, False otherwise.