@@ -0,0 +1,376 @@
+#!/usr/bin/python%0A# -*- coding: utf-8 -*-%0Afrom __future__ import unicode_literals%0A%0Afrom nltk.stem import RegexpStemmer%0A%0Apatterns = 'i$%7Ct$'%0Aregexp_stemmer = RegexpStemmer(patterns, 3)%0A%0Aprint('With RegexpStemmer')%0Afor word in %5B'P%C3%A9ter', 'szereti', 'Enik%C5%91t', '%C3%A9s', 'Marit'%5D:%0A    stem = regexp_stemmer.stem(word)%0A    print(%22Original is '%7B%7D' and stem is '%7B%7D'%22.format(word, stem))%0A%0A%0A

Add RegexpStemmer examples