spdl.source.imagenet.parse_wnid¶ parse_wnid(s: str) → str[source]¶ Parse a WordNet ID (nXXXXXXXX) from string. Parameters: s (str) – String to parse Returns: Wordnet ID if found otherwise an exception is raised.If the string contain multiple WordNet IDs, the first one is returned. Return type: (str)