-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathguess-gender-from-names.json
More file actions
41 lines (41 loc) · 1.25 KB
/
Copy pathguess-gender-from-names.json
File metadata and controls
41 lines (41 loc) · 1.25 KB
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
{
"$schema": "https://raw.githubusercontent.com/TheCocoTeam/source-watcher-api/master/pipeline.schema.json",
"notes": "Reads sample names, adds a predicted gender field, and writes the enriched rows to SQLite.",
"steps": [
{
"type": "extractor",
"name": "Csv",
"options": {
"filePath": "/var/www/html/.source-watcher/data/sample-names.csv",
"columns": ["id", "first_name", "last_name"],
"delimiter": ",",
"enclosure": "\""
},
"x": 80,
"y": 100
},
{
"type": "transformer",
"name": "GuessGender",
"options": {
"firstNameField": "first_name",
"genderField": "gender",
"country": "usa"
},
"x": 300,
"y": 100
},
{
"type": "loader",
"name": "Database",
"options": {
"driver": "pdo_sqlite",
"tableName": "people_with_gender",
"path": "/var/www/html/.source-watcher/guess-gender.db",
"memory": false
},
"x": 520,
"y": 100
}
]
}