- Text is everywhere
- Text data is growing fast
- Approximately 80% of all data is estimated to be unstructured, text-rich data
Install Anaconda from https://www.anaconda.com/distribution/ (Python version 3.7). This will set up:
Install PyCharm from https://www.jetbrains.com/pycharm/ (free version), an integrated development environment for Python.
A virtual environment is a tool that helps to keep dependencies required by different projects separate by creating isolated python virtual environments for them. This is one of the most important tools that most of the Python developers use.
Virtual Environment should be used whenever you work on any Python based project. It is generally good to have one new virtual environment for every Python based project you work on. So the dependencies of every project are isolated from the system and each other.
Open Anaconda Prompt
Check conda is installed and in your PATH
Check conda is up to date
conda update conda
Create a virtual environment for your project
conda create -n yourenvname python=x.x
Install additional Python packages to a virtual environment
conda install -n yourenvname [package]
Delete a no longer needed virtual environment
conda remove -n yourenvname --all
conda env list
Viewing a list of the packages in an environment
conda list -n yourenvname
Create the environment
conda create -n text-mining python=3.7
Activate the environment
conda activate text-mining
Install additional packages needed for Jupyter
conda install -c anaconda ipykernel
Make the environment available in Jupyter
python -m ipykernel install --user --name=text-mining
conda install -n text-mining numpy pandas
conda install -n text-mining nltk spaCy conda install -n text-mining -c conda-forge textacy
conda install -n text-mining scikit-learn
SpaCy models: https://spacy.io/models/
conda activate text-mining python -m spacy download en_core_web_sm
conda install -n text-mining beautifulsoup4
When you input text using a keyboard or in some other way, the character encoding maps characters you choose to specific bytes in computer memory, and then to display the text it reads the bytes back into characters.
UTF-8 is the default character encoding in Python 3. All Python code is in UTF-8 and, ideally, all your data should be as well. It’s when things aren’t in UTF-8 that you run into trouble.