1 # This Python file uses the following encoding: utf-8
8 class SimpleSubterms(object):
9 def __init__(self
, minlength
=1):
10 self
.__minlength
= minlength
12 def __call__(self
, term
):
13 for i
in xrange(len(term
)):
14 for j
in xrange(i
+self
.__minlength
, len(term
)+1):
15 subterm
= " ".join(s
[0] for s
in term
[i
:j
])