You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8e50172
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+40-1Lines changed: 40 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -567,6 +567,24 @@ async def main():
567
567
asyncio.run(main())
568
568
```
569
569
570
+
### Text Understanding (NLU)
571
+
572
+
`Understanding` runs zero-shot information extraction or classification against a fixed label set, without training a custom model:
573
+
574
+
```python
575
+
from dashscope import Understanding
576
+
577
+
response = Understanding.call(
578
+
model=Understanding.Models.opennlu_v1,
579
+
sentence="老师今天表扬我了",
580
+
labels="积极,消极",
581
+
task="classification",
582
+
)
583
+
print(response.output["text"])
584
+
```
585
+
586
+
Set `task="extraction"` (the default) to pull spans matching `labels` out of `sentence` instead of classifying it.
587
+
570
588
### Code Generation
571
589
572
590
`CodeGeneration` powers task-specific coding scenarios (`Scenes`): natural-language-to-code, code explanation, comment generation, commit messages, unit tests, code Q&A, and natural-language-to-SQL.
@@ -854,6 +872,25 @@ recognition.stop()
854
872
855
873
For voice cloning, pronunciation fixes, real-time speech translation, and custom ASR hot words, see the [Advanced Audio guide](docs/guides/realtime-audio.md).
856
874
875
+
### TingWu (Meeting & Industrial Audio Analysis)
876
+
877
+
`TingWu` runs domain-specific audio analysis tasks (industrial inspections, automotive service calls) against a file URL:
878
+
879
+
```python
880
+
from dashscope.multimodal.tingwu.tingwu import TingWu
Copy file name to clipboardExpand all lines: README_es.md
+40-1Lines changed: 40 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -568,6 +568,24 @@ async def main():
568
568
asyncio.run(main())
569
569
```
570
570
571
+
### Comprensión de texto (NLU)
572
+
573
+
`Understanding` ejecuta extracción de información o clasificación zero-shot sobre un conjunto de etiquetas fijo, sin necesidad de entrenar un modelo personalizado:
574
+
575
+
```python
576
+
from dashscope import Understanding
577
+
578
+
response = Understanding.call(
579
+
model=Understanding.Models.opennlu_v1,
580
+
sentence="老师今天表扬我了",
581
+
labels="积极,消极",
582
+
task="classification",
583
+
)
584
+
print(response.output["text"])
585
+
```
586
+
587
+
Usa `task="extraction"` (el valor por defecto) para extraer de `sentence` los fragmentos que coincidan con `labels`, en lugar de clasificarlo.
588
+
571
589
### Generación de código
572
590
573
591
`CodeGeneration` da soporte a escenarios de programación específicos (`Scenes`): generación de código a partir de lenguaje natural, explicación de código, generación de comentarios, mensajes de commit, pruebas unitarias, preguntas y respuestas sobre código, y generación de SQL a partir de lenguaje natural.
@@ -855,6 +873,25 @@ recognition.stop()
855
873
856
874
Para clonación de voz, corrección de pronunciación, traducción de voz en tiempo real y palabras clave (hot words) personalizadas para ASR, consulta la [guía de audio avanzado](docs/guides/realtime-audio_es.md).
857
875
876
+
### TingWu (análisis de audio de reuniones e industrial)
877
+
878
+
`TingWu` ejecuta tareas de análisis de audio específicas de dominio (inspecciones industriales, llamadas de servicio automotriz) sobre una URL de archivo:
879
+
880
+
```python
881
+
from dashscope.multimodal.tingwu.tingwu import TingWu
0 commit comments