Expanding English language contractions in Python

后端 未结 9 1546
野性不改
野性不改 2020-12-04 11:19

The English language has a couple of contractions. For instance:

you\'ve -> you have
he\'s -> he is

These can sometimes cause headach

9条回答
  •  星月不相逢
    2020-12-04 12:05

    The contractions library is indeed great and do take care of a lot of varieties. You can add your own contractions too just by using contractions.add() method.

    Check out the github page here for details.

提交回复
热议问题