Yoctol / strpipe

text preprocessing pipeline
Other
5 stars 0 forks source link

Pipe helper #41

Closed SoluMilken closed 6 years ago

SoluMilken commented 6 years ago
class PipeHelper:
    def __init__(self, pipe):
        self._pipe = pipe
   def get_state(self, index: int):
        return self._pipe._steps[index].state
SoluMilken commented 6 years ago

use cases: (1) get token2index generated from TokenToIndexOp

absolutelyNoWarranty commented 6 years ago

把method加進Pipe??

stegben commented 6 years ago

Use intermediate mechanism #56