chanind / frame-semantic-transformer

Frame Semantic Parser based on T5 and FrameNet
https://chanind.github.io/frame-semantic-transformer
MIT License
54 stars 10 forks source link

feat: bulk processing support #11

Closed chanind closed 1 year ago

chanind commented 1 year ago

This PR adds support for processing multiple sentences in parallel for more efficient batch processing of data. This is done via the detect_frames_bulk([ ... ]) method, which takes a list of sentences as input and returns a result for each sentence passed in.