| 871 | """ |
| 872 | |
| 873 | def __init__(self): |
| 874 | super(ImageNet, self).__init__( |
| 875 | "imagenet", |
| 876 | urls={ |
| 877 | "train_image": "http://www.image-net.org/challenges/LSVRC/2012/nnoupb/ILSVRC2012_img_train.tar", |
| 878 | "train_feature_data": [], # depends on `train_image` |
| 879 | "train_label": [], # depends on `train_image` |
| 880 | "train_hierarchical_label": [], # depends on `train_image` |
| 881 | "valid_image": ["http://www.image-net.org/challenges/LSVRC/2012/nnoupb/ILSVRC2012_img_val.tar", |
| 882 | "http://www.image-net.org/challenges/LSVRC/2012/nnoupb/ILSVRC2012_devkit_t12.tar.gz"], |
| 883 | "valid_feature_data": [], # depends on `valid_image` |
| 884 | "valid_label": "http://www.image-net.org/challenges/LSVRC/2012/nnoupb/ILSVRC2012_devkit_t12.tar.gz", |
| 885 | "valid_hierarchical_label": |
| 886 | "http://www.image-net.org/challenges/LSVRC/2012/nnoupb/ILSVRC2012_devkit_t12.tar.gz", |
| 887 | "feature_data": [], # depends on `train_feature_data` & `valid_feature_data` |
| 888 | "label": [], # depends on `train_label` & `valid_label` |
| 889 | "hierarchical_label": [], # depends on `train_hierarchical_label` & `valid_hierarchical_label` |
| 890 | } |
| 891 | ) |
| 892 | |
| 893 | def import_wordnet(self): |
| 894 | import nltk |