def semtype(self, key):
        if isinstance(key, int):
            stid = key
        else:
            try:
                stid = self._semtypes[key]
            except TypeError:
                self._loadsemtypes()
                stid = self._semtypes[key]

        try:
            st = self._semtypes[stid]
        except TypeError:
            self._loadsemtypes()
            st = self._semtypes[stid]

        return st
Slices off the passed proportion of items from ONE end of the passed
dataset/ETHPy150Open nltk/nltk/nltk/corpus/reader/framenet.py/FramenetCorpusReader.semtype--crossover with--dataset/ETHPy150Open radlab/sparrow/src/main/python/third_party/stats.py/ltrim1