3250ac1188e9fc0e38231e1b5267c5e35d7dcfd6,03-arrays/tf-03.py,,,#,5

Before Change


//                [ 7, 13]], dtype=int64)

// Voila! Words are in between spaces, given as pairs of indices
words = [characters[w_ranges[i][0] : w_ranges[i][1]] for i in range(len(w_ranges))]
// Result: [array([" ", "h", "e", "l", "l", "o"], dtype="<U1"), 
//          array([" ", "w", "o", "r", "l", "d"], dtype="<U1")]
// Let"s recode the characters as strings
swords = np.array(["".join(row).strip() for row in words])
// Result: array(["hello", "world"], dtype="<U5")

// Next, let"s remove stop words

After Change


//                [ 7, 13]], dtype=int64)

// Voila! Words are in between spaces, given as pairs of indices
words = list(map(lambda r: characters[r[0]:r[1]], w_ranges))
// Result: [array([" ", "h", "e", "l", "l", "o"], dtype="<U1"), 
//          array([" ", "w", "o", "r", "l", "d"], dtype="<U1")]
// Let"s recode the characters as strings
swords = np.array(list(map(lambda w: "".join(w).strip(), words)))
// Result: array(["hello", "world"], dtype="<U5")

// Next, let"s remove stop words
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: crista/exercises-in-programming-style
Commit Name: 3250ac1188e9fc0e38231e1b5267c5e35d7dcfd6
Time: 2019-11-19
Author: cubesolver@gmail.com
File Name: 03-arrays/tf-03.py
Class Name:
Method Name:


Project Name: crista/exercises-in-programming-style
Commit Name: 3250ac1188e9fc0e38231e1b5267c5e35d7dcfd6
Time: 2019-11-19
Author: cubesolver@gmail.com
File Name: 03-arrays/tf-03.py
Class Name:
Method Name:


Project Name: snorkel-team/snorkel
Commit Name: 19ae606b4608957335ce16b8bd2a9bd2ecd7e098
Time: 2016-07-01
Author: ajratner@gmail.com
File Name: tutorial/load_dictionaries.py
Class Name:
Method Name: load_acronym_dictionary


Project Name: chakki-works/doccano
Commit Name: f8a72a0a60658d462753fe39a2119932358ccca5
Time: 2018-12-26
Author: sergiy.n@attendify.com
File Name: app/server/views.py
Class Name: DataUpload
Method Name: post