Przejdź do treści
Biblioteka skilli
Programowanie · Integracja z narzędziem

deepgram-java-text-intelligence

/deepgram-java-text-intelligence

Obsługuje w Javie Deepgram Text Intelligence (/v1/read) do analizy tekstu: sentyment, tematy, intencje i podsumowania przez client.read().v1().text().analyze z ReadV1Request lub TextAnalyzeRequest.

Licencja
MIT
Ostatnia zmiana repozytorium
27.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
4
Przestarzałość

Brak sygnałów. Repozytorium zmienione 27.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Obsługuje w Javie Deepgram Text Intelligence (/v1/read) do analizy tekstu: sentyment, tematy, intencje i podsumowania przez client.read().v1().text().analyze z ReadV1Request lub TextAnalyzeRequest.

Wyzwalacze z opisu

read apitext intelligenceanalyze textsentimenttopicsintentssummarize text
Oryginalny opis (EN)

Use when writing or reviewing Java code in this repo that calls Deepgram Text Intelligence / Read (`/v1/read`) for text analysis. Covers `client.read().v1().text().analyze(...)` with `ReadV1Request` or `TextAnalyzeRequest`. Use `deepgram-java-audio-intelligence` when the source is audio instead of text. Triggers include "read api", "text intelligence", "analyze text", "sentiment", "topics", "intents", and "summarize text".

Jak działa

  1. When to use this product
  2. Authentication
  3. Quick start
  4. Quick start — custom topics and intents
  5. Async equivalent
  6. Key parameters / API surface
  7. API reference (layered)
  8. Gotchas
  9. Example files in this repo
  10. Central product skills
Sekcje z nagłówków SKILL.md, w oryginale · 125 linii, 430 słów
Podgląd SKILL.md
---
name: deepgram-java-text-intelligence
description: Use when writing or reviewing Java code in this repo that calls Deepgram Text Intelligence / Read (`/v1/read`) for text analysis. Covers `client.read().v1().text().analyze(...)` with `ReadV1Request` or `TextAnalyzeRequest`. Use `deepgram-java-audio-intelligence` when the source is audio instead of text. Triggers include "read api", "text intelligence", "analyze text", "sentiment", "topics", "intents", and "summarize text".
---

# Using Deepgram Text Intelligence (Java SDK)

Analyze text you already have — transcripts, chats, documents, or other plain text — via `/v1/read`.

## When to use this product

- You already have **text**, not audio.
- You want one-shot REST analysis for sentiment, topics, intents, or summary-like outputs.

**Use a different skill when:**
- The source is audio and you want analysis during transcription → `deepgram-java-audio-intelligence`.

## Authentication

```java
import com.deepgram.DeepgramClient;

DeepgramClient client = DeepgramClient.builder()
        .apiKey(System.getenv("DEEPGRAM_API_KEY"))
        .build();
```

## Quick start

```java
import com.deepgram.resources.read.v1.text.requests.TextAnalyzeRequest;
import com.deepgram.types.ReadV1Request;
import com.deepgram.types.ReadV1RequestText;
import com.deepgram.types.ReadV1Response;

ReadV1RequestText textBody = ReadV1RequestText.builder()
        .text("Life moves pretty fast. If you don't stop and look around once in a while, you could miss it.")
        .build();

TextAnalyzeRequest request = TextAnalyzeRequest.builder()
        .body(ReadV1Request.of(textBody))
        .sentiment(true)
        .topics(true)
        .intents(true)
        .language("en")
        .build();

ReadV1Response response = client.read().v1().text().analyze(request);
response.getResults().getTopics().ifPresent(System.out::println);
response.getResults().getIntents().ifPresent(System.out::println);
response.getResults().getSentiments().ifPresent(System.out::println);
```

## Quick start — custom topics and intents

```java
import com.deepgram.resources.read.v1.text.types.TextAnalyzeRequestCustomIntentMode;
import com.deepgram.resources.read.v1.text.types.TextAnalyzeRequestCustomTopicMode;
import java.util.Arrays;

TextAnalyzeRequest request = TextAnalyzeRequest.builder()
        .body(ReadV1Request.of(textBody))
        .language("en")
        .sentiment(true)
        .topics(true)
        .intents(true)
        .customTopic(Arrays.asList("Customer Retention", "Product Quality"))
        .customTopicMode(TextAnalyzeRequestCustomTopicMode.EXTENDED)
        .customIntent(Arrays.asList("Request Refund", "Complaint"))
        .customIntentMode(TextAnalyzeRequestCustomIntentMode.EXTENDED)
        .build();
```

## Async equivalent

```java
import com.deepgram.AsyncDeepgramClient;
import java.util.concurrent.CompletableFuture;

AsyncDeepgramClient asyncClient = AsyncDeepgramClient.builder()
        .apiKey(System.getenv("DEEPGRAM_API_KEY"))
        .build();

CompletableFuture<com.deepgram.types.ReadV1Response> future =
        asyncClient.read().v1().text().analyze(request);
```

## Key parameters / API surface

- `TextAnalyzeRequest.builder().body(ReadV1Request.of(...))` is the high-level request path
- Body types are `ReadV1RequestText` or URL-based `ReadV1Request` variants
- Verified request fields: `language`, `sentiment`, `summarize`, `topics`, `intents`, `customTopic`, `customTopicMode`, `customIntent`, `customIntentMode`, `callback`, `callbackMethod`, `tag`
- Methods: `text().analyze(ReadV1Request)`, `text().analyze(TextAnalyzeRequest)`, plus async and `withRawResponse()` variants
- Results live under `ReadV1Response.getResults()`

## API reference (layered)

1. **In-repo source of truth**: `src/main/java/com/deepgram/resources/read/v1/text/` and `examples/read/`. No `reference.md` file is present here.
2. **Canonical OpenAPI**: https://developers.deepgram.com/openapi.yaml
3. **Context7**: `/llmstxt/developers_deepgram_llms_txt`
4. **Product docs**:
   - https://developers.deepgram.com/reference/text-intelligence/analyze-text
   - https://developers.deepgram.com/docs/text-intelligence
   - https://developers.deepgram.com/docs/text-sentiment-analysis

## Gotchas

1. **Use `body(ReadV1Request.of(...))`, not raw maps.** This SDK is strongly typed.
2. **`TextAnalyzeRequest` wraps both query-style options and the request body.** `ReadV1Request` alone only supplies the input content.
3. **Custom topics/intents need matching modes** (`STRICT` or `EXTENDED`) if you want deterministic behavior.
4. **The request surface exposes `summarize` separately from Listen V1.** Do not assume Listen's versioned summarize enum applies here.
5. **Language is explicit in examples.** Follow that pattern when using topics, intents, or sentiment.
6. **This repo has no dedicated async example for Read.** Use `AsyncDeepgramClient` and `CompletableFuture` directly.

## Example files in this repo

- `examples/read/AnalyzeText.java`
- `examples/read/AdvancedAnalysis.java`

## Central product skills

For cross-language Deepgram product knowledge — the consolidated API reference, documentation finder, focused runnable recipes, third-party integration examples, and MCP setup — install the central skills:

```bash
npx skills add deepgram/skills
```

This SDK ships language-idiomatic code skills; `deepgram/skills` ships cross-language product knowledge (see `api`, `docs`, `recipes`, `examples`, `starters`, `setup-mcp`).

Wersje

W bazie nie ma innych skilli o nazwie deepgram-java-text-intelligence.

Migawka bazy z 13.11.2026 · wersja paczki 9ef14274f601 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100deepgram-python-text-intelligence
    Obsługuje w Pythonie Deepgram Text Intelligence (/v1/read): sentyment, streszczanie, wykrywanie tematów i rozpoznawanie intencji w tekście lub pod adresem URL.
  • 100deepgram-js-text-intelligence
    Obsługuje w JavaScripcie i TypeScripcie Deepgram Text Intelligence (/v1/read): sentyment, streszczanie, wykrywanie tematów i rozpoznawanie intencji w tekście lub pod adresem URL.
  • 100deepgram-java-audio-intelligence
    Włącza w Javie nakładki analityczne Deepgram w transkrypcji /v1/listen: diaryzację, wykrywanie encji, sentyment, podsumowania, tematy, intencje, wykrywanie języka i redakcję, przez dodatkowe pola żądania.
  • 100deepgram-dotnet-text-intelligence
    Obsługuje w C# Deepgram Text Intelligence (Read) dla tekstu i adresów URL z tekstem: sentyment, streszczenia, wykrywanie tematów i rozpoznawanie intencji przez klienta Analyze.
  • 100deepgram-go-text-intelligence
    Wysyła w Go tekst do Deepgram Read przez klienta analyze, w tym analizę sentymentu, tematów i intencji dla treści tekstowych.
  • 100deepgram-go-audio-intelligence
    Stosuje w Go przez Listen v1 REST analitykę audio Deepgram: podsumowania, tematy, intencje, sentyment, wykrywanie języka, diaryzację, redakcję i ekstrakcję encji.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.