Simplify

Simplify sentences using different methods.

In general you should not need to use these directly.

neuralTextSimplification

Neural Text Simplification.

You need to set NTS_OPENNMT_PATH, NTS_MODEL_PATH and NTS_GPUS environmental variables to use this.

clstk.simplify.neuralTextSimplification.simplify(sentences, lang)

Simplify sentences using NTS

Parameters:
  • sentences – List of sentence
  • lang – Language of sentences
Returns:

List of simplified sentences