Tabs replaced with spaces in several files
This commit is contained in:
@@ -8,34 +8,34 @@ from nltk import RegexpTokenizer, OrderedDict
|
||||
from nltk.stem.snowball import RussianStemmer
|
||||
|
||||
genres = {
|
||||
1: "Rock",
|
||||
2: "Pop",
|
||||
3: "Rap & Hip - Hop",
|
||||
4: "Easy Listening",
|
||||
5: "Dance & House",
|
||||
6: "Instrumental",
|
||||
7: "Metal",
|
||||
21: "Alternative",
|
||||
8: "Dubstep",
|
||||
9: "Jazz & Blues",
|
||||
10: "Drum & Bass",
|
||||
11: "Trance",
|
||||
12: "Chanson",
|
||||
13: "Ethnic",
|
||||
14: "Acoustic & Vocal",
|
||||
15: "Reggae",
|
||||
16: "Classical",
|
||||
17: "Indie Pop",
|
||||
19: "Speech",
|
||||
22: "Electropop & Disco",
|
||||
18: "Other"
|
||||
1: "Rock",
|
||||
2: "Pop",
|
||||
3: "Rap & Hip - Hop",
|
||||
4: "Easy Listening",
|
||||
5: "Dance & House",
|
||||
6: "Instrumental",
|
||||
7: "Metal",
|
||||
21: "Alternative",
|
||||
8: "Dubstep",
|
||||
9: "Jazz & Blues",
|
||||
10: "Drum & Bass",
|
||||
11: "Trance",
|
||||
12: "Chanson",
|
||||
13: "Ethnic",
|
||||
14: "Acoustic & Vocal",
|
||||
15: "Reggae",
|
||||
16: "Classical",
|
||||
17: "Indie Pop",
|
||||
19: "Speech",
|
||||
22: "Electropop & Disco",
|
||||
18: "Other"
|
||||
}
|
||||
|
||||
|
||||
def dictWithoutOneKey(d, key):
|
||||
new_d = d.copy()
|
||||
new_d.pop(key)
|
||||
return new_d
|
||||
new_d = d.copy()
|
||||
new_d.pop(key)
|
||||
return new_d
|
||||
|
||||
if __name__ == '__main__':
|
||||
musicFileName = sys.argv[1]
|
||||
|
||||
Reference in New Issue
Block a user