We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 6 columns, instead of 4 in line 1.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,002qtwH.txt,bed,47%,dog,55% | |
2,0066Z9W.txt,person,57% | |
3,0082B22.txt, | |
4,008BdUz.txt,train,68% | |
5,00c5Zm8.txt,train,61%,car,59%,car,58% | |
6,00EUnvm.txt,pizza,59% | |
7,00Iz1L9.txt,car,53% | |
8,00tIJI6.txt, | |
9,00ucuja.txt,car,43%,cow,46% | |
10,00WLtUB.txt, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
import numpy as np | |
import skimage.io as io | |
import matplotlib.pyplot as plt | |
import pylab | |
import sys | |
from pprint import pprint as p | |
from time import sleep | |
import os | |
sys.path.append('/home/mona/mscoco/coco/PythonAPI') |
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 33 columns, instead of 4 in line 1.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
262145,umbrella,umbrella,carrot,carrot,carrot,carrot,person,person,person,person,person,person,person,person,person,person,person,person,umbrella,carrot,carrot,carrot,carrot,carrot,carrot,carrot,carrot,person,umbrella,carrot,person,carrot | |
262146,person,skis,backpack | |
524291,dog,dog,person,frisbee | |
393223,toothbrush,person | |
393224,tie,person,person,person,person,person | |
524297,person,person,person,bear | |
393227,person,skateboard | |
131084,motorcycle,person | |
393230,person,skis | |
524311,chair,person,remote |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import skimage.io as io | |
import matplotlib.pyplot as plt | |
import pylab | |
import sys | |
from pprint import pprint as p | |
from time import sleep | |
import os | |
sys.path.append('/home/mona/mscoco/coco/PythonAPI') | |
p(sys.path) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ find . -type d -print0 | while read -d '' -r dir; do files=("$dir"/*); printf "%5d files in directory %s\n" "${#files[@]}" "$dir"; done | |
80 files in directory . | |
65 files in directory ./scissors | |
65 files in directory ./train | |
65 files in directory ./orange | |
65 files in directory ./vase | |
65 files in directory ./bear | |
65 files in directory ./handbag | |
65 files in directory ./cow | |
65 files in directory ./hair drier |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gensim | |
import nltk | |
from gensim.models import word2vec | |
from nltk.corpus import stopwords | |
from nltk.corpus import wordnet | |
import logging | |
import re | |
import itertools | |
import glob | |
from collections import defaultdict |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gensim | |
import nltk | |
from gensim.models import word2vec | |
from nltk.corpus import stopwords | |
from nltk.corpus import wordnet | |
import logging | |
import re | |
import itertools | |
import glob | |
from collections import defaultdict |
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 6 columns, instead of 4 in line 1.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,002qtwH.txt,bed,47%,dog,55% | |
2,0066Z9W.txt,person,57% | |
3,0082B22.txt, | |
4,008BdUz.txt,train,68% | |
5,00c5Zm8.txt,train,61%,car,59%,car,58% | |
6,00EUnvm.txt,pizza,59% | |
7,00Iz1L9.txt,car,53% | |
8,00tIJI6.txt, | |
9,00ucuja.txt,car,43%,cow,46% | |
10,00WLtUB.txt, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 | 27 | 3.4107552998838155 | |
---|---|---|---|
32 | 44 | 3.426142447867949 | |
32 | 9 | 3.4529286379930872 | |
32 | 69 | 3.5807497781119064 | |
32 | 62 | 3.6451437194108136 | |
32 | 98 | 3.555967664802881 | |
32 | 64 | 3.3925008237448084 | |
32 | 66 | 3.40930565088929 | |
32 | 26 | 3.25829467751374 | |
32 | 60 | 3.3221555762174373 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 | 27 | 12.097208503780285 | |
---|---|---|---|
32 | 44 | 12.058814363861408 | |
32 | 9 | 11.078753062480033 | |
32 | 69 | 12.652643409972455 | |
32 | 62 | 10.226468047191087 | |
32 | 98 | 12.215543548284748 | |
32 | 64 | 11.580464374378293 | |
32 | 66 | 10.469235640290906 | |
32 | 26 | 12.020226445524857 | |
32 | 60 | 11.173678230157412 |