Date: 2016/07/13 21:28:17 UTC-07:00
Type: Denizen Script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Example list of sentences (pre-tokenized) sentences = [["Mission", "Impossible", "4", "Ghost", "Protocol", "Dual", "Audio", "720p"]]
# Concatenate all vectors for a deep feature deep_feature = np.concatenate([title_vector, genre_vector, resolution_vector, audio_vector, part_of_series_vector]) Mission Impossible 4 Ghost Protocol Dual Audio 720p
# Genre, Resolution, Audio, Part of Series genre_vector = np.array([1, 0, 0]) # Action, assuming a [action, comedy, drama] space resolution_vector = np.array([0, 1]) # 720p, assuming [480p, 720p] space audio_vector = np.array([1, 0]) # Dual, assuming [Single, Dual] space part_of_series_vector = np.array([4]) # Example list of sentences (pre-tokenized) sentences =