Removed Gender since it can't work with DLTC
This commit is contained in:
parent
68c298fcd9
commit
5fb2d12b68
10
Makefile
10
Makefile
|
@ -1,23 +1,13 @@
|
||||||
build_name_gender:
|
|
||||||
python3 -m coffeehouse_dltc --train-model name_gender
|
|
||||||
|
|
||||||
build_advanced_sentiments:
|
build_advanced_sentiments:
|
||||||
python3 -m coffeehouse_dltc --train-model advanced_sentiments
|
python3 -m coffeehouse_dltc --train-model advanced_sentiments
|
||||||
|
|
||||||
build:
|
build:
|
||||||
make build_name_gender
|
|
||||||
make build_advanced_sentiments
|
make build_advanced_sentiments
|
||||||
|
|
||||||
test_name_gender:
|
|
||||||
python3 -m coffeehouse_dltc --test-model name_gender_build
|
|
||||||
|
|
||||||
test_advanced_sentiments:
|
test_advanced_sentiments:
|
||||||
python3 -m coffeehouse_dltc --test-model advanced_sentiments_build
|
python3 -m coffeehouse_dltc --test-model advanced_sentiments_build
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@for f in $(shell ls name_gender); do \
|
|
||||||
echo "Processing $${f}" && sort -u "name_gender/$${f}" > "name_gender/$${f}.clean" && rm "name_gender/$${f}" && mv "name_gender/$${f}.clean" "name_gender/$${f}"; \
|
|
||||||
done
|
|
||||||
@for f in $(shell ls advanced_sentiments); do \
|
@for f in $(shell ls advanced_sentiments); do \
|
||||||
echo "Processing $${f}" && sort -u "advanced_sentiments/$${f}" > "advanced_sentiments/$${f}.clean" && rm "advanced_sentiments/$${f}" && mv "advanced_sentiments/$${f}.clean" "advanced_sentiments/$${f}"; \
|
echo "Processing $${f}" && sort -u "advanced_sentiments/$${f}" > "advanced_sentiments/$${f}.clean" && rm "advanced_sentiments/$${f}" && mv "advanced_sentiments/$${f}.clean" "advanced_sentiments/$${f}"; \
|
||||||
done
|
done
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -1,20 +0,0 @@
|
||||||
{
|
|
||||||
"model": {
|
|
||||||
"name": "Name Gender Prediction",
|
|
||||||
"model_name": "name_gender",
|
|
||||||
"author": "Zi Xing",
|
|
||||||
"version": "1.0.0.0",
|
|
||||||
"description": "Model for predicting the the gender based off a name"
|
|
||||||
},
|
|
||||||
"training_properties":{
|
|
||||||
"epoch": 30,
|
|
||||||
"vec_dim": 100,
|
|
||||||
"test_ratio": 0.2,
|
|
||||||
"architecture": "cnn",
|
|
||||||
"batch_size": 64
|
|
||||||
},
|
|
||||||
"classification": [
|
|
||||||
{"l": "male", "f": "male_names.dat"},
|
|
||||||
{"l": "female", "f": "female_names.dat"}
|
|
||||||
]
|
|
||||||
}
|
|
Loading…
Reference in New Issue