- Execute
source setup_env.sh
at the directory root - Run python codes from the directory src/python
The installation assumes that you have installed git
and anaconda
(or miniconda
).
git clone --recurse-submodules https://github.com/uwescience/xstate.git
cd xstate
bash setup.sh
Windows users should manually perform the steps in setup.sh.
For all use cases:
- Start a new terminal session
cd xstate
conda activate xstate
When done, conda deactivate xstate
Update the classifiers:
- From the top level repository directory,
python xstate/xstate/python/tools/make_svm_classifier.py
. (On windows, use\
instead of/
.
Run a classification:
- Start a new terminal session, change directory to
xstate
, and activate the virtual environment. - From the top level repository directory,
python xstate/xstate/python/tools/classify_expression.py <data_file>
. (On windows, use\
instead of/
. Note: It is assumed that <data file> is in thesamples
directory underdata
. To change the directory, use the--dir
option.