Project made by Kim Chouard in the context of Intelligent Speech processing class of Shanghai Jiao Tong University.
Create a local environment:
virtualenv env
source env/bin/activate
Then install the dependencies:
pip install -r requirements.txt
easy_install argparse
To run the main script:
python main.py <training input file> <unlabeled input file> <labeled output file>
Optional arguments:
-h, --help show a help message and exit
-d DIMENSION, --dimension DIMENSION
Number of dimensions for features
-m INITMETHOD, --initMethod INITMETHOD
Means selection method: `random` `kmeans` (not yet implemented).
-v, --verbose Get it more talkative :)
-t, --tests Used to test the algorithm. Don't import the labels from the unlabeled input file, even if labeled.
To run a batch of test, on the dev.txt for examples:
python scripts/tests.py <training input file> <testing input file> <result output file> <number of iterations>