MTSU Software Engineering CSCI-4700/5700 project with Vanderbilt
sound-count attempts to answer:
- Measure how many words are in an audio stream/file.
- Description of speaker - Adult or child, male or female.
- Content of the sentence. Is it a sentence, is it a question?
- Part of speech information.
- Quantify when and whether a child likes or dislikes aspects.
- Windows is not supported, install Ubuntu in VirtualBox instead.
- Prerequisite: Python 3.6.8
Note: Some systems use Python 2.7 as the default python interpreter. Be sure to check which python you're using with python --version if you are unsure of your system's default python interpreter.
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.pythen install the python package manager pip using
python<3> get-pip.pyYou more than likely need to use python3. Alternatively, sudo easy_install pip, may also work.
pip might be available via brew for macOS via brew install pip3. sudo apt install python3-pip should work in most Debian/apt-based linux distributions systems. You may also use pip<3> --version to display which pip is in use.
install virtualenv using pip:
pip<3> install virtualenvVirtualenv is used to create and manage environments for different python projects. A virtualenv is strongly recommended. Use virtualenv to create a virtual environment by using:
virtualenv env --python=$(which python3.6)NOTE: If you are in a virtual environment do not use sudo, as this will install outside the virtual environment. In a virtual environment, the packages are installed in (this case) to the folder env
Use source env/bin/activate to load your environment. env is a placeholder for your environment name.
Use deactivate to exit out of your environment.
To verify which environment you're in, use which pip. if you see that the pip location is in your environment folder (env), then you are in your virtual environment. Also notice that in virtualenv, python3 is now the default interpreter which makes life much easier. Check using python --version and notice the lack of 3 at the end.
swig is a dependance for some python packages. Use
apt install swigor
brew install swigThen install python packages by:
pip<3> install -r requirements.txtBe sure to download the NLTK dataset: use `python<3> to bring up an interpreter:
>>> import nltk; nltk.download()python api.py- Recommended: Postman
