@@ -15479,8 +15479,10 @@ <h4>Args:</h4>
1547915479 start = int(start * 1000)
1548015480 end = int(end * 1000)
1548115481 if word == "▁":
15482+ prev_word = None
1548215483 continue
1548315484 if i == 0:
15485+ word = word[1:] if word.startswith("▁") else word
1548415486 # timestamp_new.append([word, start, end])
1548515487 timestamp_new.append([start, end])
1548615488 words_new.append(word)
@@ -15493,9 +15495,7 @@ <h4>Args:</h4>
1549315495 timestamp_new[-1][1] = end
1549415496 words_new[-1] = word
1549515497 else:
15496- # timestamp_new[-1][0] += word
15497- timestamp_new.append([start, end])
15498- </code></pre><a class="src-more" href="https://github.com/modelscope/FunASR/blob/main/funasr/models/sense_voice/model.py#L1082" rel="noopener noreferrer" target="_blank">View full source →</a></details></div><div class="mblk"><code>.export(**kwargs)</code> <a class="gh-link" href="https://github.com/modelscope/FunASR/blob/main/funasr/models/sense_voice/model.py#L1116" rel="noopener noreferrer" target="_blank">L1116</a><div class="mdoc"><p>Export.</p>
15498+ </code></pre><a class="src-more" href="https://github.com/modelscope/FunASR/blob/main/funasr/models/sense_voice/model.py#L1082" rel="noopener noreferrer" target="_blank">View full source →</a></details></div><div class="mblk"><code>.export(**kwargs)</code> <a class="gh-link" href="https://github.com/modelscope/FunASR/blob/main/funasr/models/sense_voice/model.py#L1118" rel="noopener noreferrer" target="_blank">L1118</a><div class="mdoc"><p>Export.</p>
1549915499<h4>Args:</h4>
1550015500<ul>
1550115501<li><code>**kwargs</code> — Additional keyword arguments.</li>
@@ -15671,8 +15671,10 @@ <h4>Args:</h4>
1567115671 start = int(start * 1000)
1567215672 end = int(end * 1000)
1567315673 if word == "▁":
15674+ prev_word = None
1567415675 continue
1567515676 if i == 0:
15677+ word = word[1:] if word.startswith("▁") else word
1567615678 # timestamp_new.append([word, start, end])
1567715679 timestamp_new.append([start, end])
1567815680 words_new.append(word)
@@ -15685,10 +15687,8 @@ <h4>Args:</h4>
1568515687 timestamp_new[-1][1] = end
1568615688 words_new[-1] = word
1568715689 else:
15688- # timestamp_new[-1][0] += word
15689- timestamp_new.append([start, end])
1569015690</code></pre><a class="src-more" href="https://github.com/modelscope/FunASR/blob/main/funasr/models/sense_voice/model.py#L1082" rel="noopener noreferrer" target="_blank">View full source on GitHub →</a></details></div>
15691- <div class="api-detail" id="e241" tabindex="-1"><span class="dtag badge-m">method</span><h2><code>SenseVoiceSmall.export(**kwargs)</code></h2><div class="dmod">funasr.models.sense_voice.SenseVoiceSmall · <a href="https://github.com/modelscope/FunASR/blob/main/funasr/models/sense_voice/model.py#L1116 " rel="noopener noreferrer" target="_blank">View on GitHub ↗</a></div><div class="ddoc"><p>Export.</p>
15691+ <div class="api-detail" id="e241" tabindex="-1"><span class="dtag badge-m">method</span><h2><code>SenseVoiceSmall.export(**kwargs)</code></h2><div class="dmod">funasr.models.sense_voice.SenseVoiceSmall · <a href="https://github.com/modelscope/FunASR/blob/main/funasr/models/sense_voice/model.py#L1118 " rel="noopener noreferrer" target="_blank">View on GitHub ↗</a></div><div class="ddoc"><p>Export.</p>
1569215692<h4>Args:</h4>
1569315693<ul>
1569415694<li><code>**kwargs</code> — Additional keyword arguments.</li>
0 commit comments