Update README.md
Browse files
README.md
CHANGED
@@ -72,12 +72,15 @@ pipe = pipeline(
|
|
72 |
chunk_length_s=15,
|
73 |
batch_size=16,
|
74 |
trust_remote_code=True,
|
75 |
-
punctuator=False,
|
76 |
-
return_unique_speaker=True
|
77 |
)
|
78 |
|
79 |
# run inference
|
80 |
-
result = pipe(
|
|
|
|
|
|
|
|
|
|
|
81 |
print(result)
|
82 |
>>>
|
83 |
{'chunks': [{'speaker': ['SPEAKER_02'],
|
@@ -124,8 +127,8 @@ print(result)
|
|
124 |
|
125 |
- To activate punctuator:
|
126 |
```diff
|
127 |
-
-
|
128 |
-
+
|
129 |
```
|
130 |
|
131 |
- To include more than a single speaker:
|
|
|
72 |
chunk_length_s=15,
|
73 |
batch_size=16,
|
74 |
trust_remote_code=True,
|
|
|
|
|
75 |
)
|
76 |
|
77 |
# run inference
|
78 |
+
result = pipe(
|
79 |
+
"sample_diarization_japanese.mp3",
|
80 |
+
add_punctuation=False,
|
81 |
+
return_unique_speaker=True,
|
82 |
+
generate_kwargs=generate_kwargs
|
83 |
+
)
|
84 |
print(result)
|
85 |
>>>
|
86 |
{'chunks': [{'speaker': ['SPEAKER_02'],
|
|
|
127 |
|
128 |
- To activate punctuator:
|
129 |
```diff
|
130 |
+
- add_punctuation=True,
|
131 |
+
+ add_punctuation=False,
|
132 |
```
|
133 |
|
134 |
- To include more than a single speaker:
|