Installation

PIP

Package shorttext runs in Python 3.11, 3.12, and 3.13.

To install the package in Linux or OS X, enter the following in the console:

pip install shorttext

It is very possible that you have to do it as root, that you have to add sudo in front of the command.

On the other hand, to get the development version on Github, you can install from Github:

pip install git+https://github.com/stephenhky/PyShortTextCategorization@master

Backend for Keras

We use TensorFlow for keras.

Possible Solutions for Installation Failures

Most developers can install shorttext with the instructions above. If the installation fails, you may try one (or more) of the following:

  1. Installing Python-dev by typing:

pip install python3-dev
  1. Installing gcc by entering

apt-get install libc6

Home: Homepage of shorttext