ottokart / punctuator2

A bidirectional recurrent neural network model with attention mechanism for restoring missing punctuation in unsegmented text
http://bark.phon.ioc.ee/punctuator
MIT License
657 stars 195 forks source link

Adding punctuator for long text #74

Open ben-8878 opened 3 years ago

ben-8878 commented 3 years ago

convert an hours audio to text and add punctuator for long text ,I find that it becomes very slowlly and 2000% of memory

FurkanGozukara commented 1 year ago

@v-yunbin how do you make it work can you show me an example? I want to run it on Windows OS

For example i am able to run fastpunc like below

from fastpunct import FastPunct
# The default language is 'english'
fastpunct = FastPunct()

f = open("TextFile1.txt", "r")

text_val = f.read()

result = fastpunct.punct(text_val, correct=True)