Skip to content

Communication Analysis

As of: 2026-11-13

Communication Analysis splits a counseling conversation into segments (for example sentences) and assigns a category to each segment. The first classifier is OnCoCo with 68 categories for counseling conversations, separate for counsellor and client. You paste a conversation, choose segmentation and classifier, and see the result after a few seconds. None of it is stored.


Requirements

  • You need the permission feature:oncoco:view. The roles researcher and admin have it; an admin can grant it to individual people.
  • On the home page, open the tile "Communication Analysis". The address is /oncoco. Old bookmarks such as /oncoco/config or /oncoco/results/… also lead here.
  • The analysis service must be running on the server. If it is not, you see the message "Analysis currently unavailable" (see Messages).

Step by step

The page shows the input on the left and the result on the right. On a phone these are two tabs, "Input" and "Result".

  1. Enter the conversation. Each message is a block with the role Counsellor or Client. "Add message" adds more; the arrows change the order.
  2. Or: "Import from text". Paste a whole conversation. A new message starts at every blank line and at every line with a role prefix. The prefix sets the role and is removed; lines without a prefix belong to the previous message. Recognised prefixes are B:, K:, Berater:, Beraterin:, Berater:in:, Beratende:, Klient:, Klientin:, Klient:in:, Counselor:, Counsellor: and Client:. Example:
K: Hello, I don't know what to do right now.
B: Good that you are writing. What is on your mind?
K: My exam is next week.
I can hardly sleep.

This gives three messages; the last one has two lines. The preview shows how many messages were found and how many have no role. "Import" replaces the input, "Append" adds the messages at the end. 3. Check the roles. A message without a prefix gets no role and is marked "Role missing". OnCoCo needs a role for every message. 4. Choose the segmentation: - Sentences (SaT model) — a language model finds sentence boundaries, even without clean punctuation. Recommended. - Sentences (rules) — splits at punctuation. A trailing emoji can become its own segment. - Whole message — each message is one segment. The classifier reads only about the first 512 tokens of it; the rest of a long message does not count. 5. Choose the classifier: OnCoCo (counseling conversations) or "Segment only". Entries whose model is currently not loaded on the server are marked "not available". LLARS remembers your last choice in this browser. 6. Choose "Analyse". If the button is disabled, the reason is shown below it (for example "Please choose a role for every message."). Long conversations can take up to a minute.


Reading the result

  • Header: number of segments, model used and duration.
  • Per message its segments are listed, with the message number and role.
  • Label path: below each segment the category is shown as a path in the OnCoCo tree, from the role down to the exact category.
  • Confidence: the percentage next to it says how certain the model is. Hover over it (or focus it with the keyboard) to see the three most likely categories with their values. A low confidence or close values are a reason to check the segment yourself.
  • "no label" appears when the service assigned no category to a segment.
  • Label distribution: below, LLARS counts how often each category occurs, with count and share of all labelled segments, most frequent first. "Segment only" has no distribution.

The model is an aid, not an annotation. Check the results yourself before relying on them.


Export

Below the result you can download it as CSV or JSON. The file is created in your browser; the server never sees the export. The file name is kommunikationsanalyse-<timestamp>.csv or .json.

CSV (UTF-8 with BOM, separator ;, opens in Excel with correct umlauts): one row per segment with the columns

Column Content
message_index number of the message, from 0
role counselor or client
start, end position of the segment in the message, counted in characters (Unicode code points)
text text of the segment
label category id (for example CL-FB), empty without a label
label_path readable path of the category
confidence confidence between 0 and 1

Text cells that start with =, +, -, @, tab or carriage return get a leading ', so that a text like "=HYPERLINK(…)" cannot run as a formula in a spreadsheet.

JSON (format llars-communication-analysis-v1): the input messages with role and text, the segments with the same fields as the CSV, the distribution, and segmenter and classifier with model and revision. The JSON export keeps the text unchanged, without formula protection.


Limits

Limit Value
Characters per analysis (all messages together) 20,000
Messages per analysis 200
Segments per analysis 300
Time limit 60 seconds
Analyses per person 10 per minute
"Whole message" the classifier reads only about 512 tokens per message

LLARS checks characters and messages before sending; the number of segments is only known to the service.


Privacy

  • Nothing is stored: neither the conversation nor the result. The server processes the text only for the response and forgets it afterwards.
  • The result exists only in this browser window. Closing or reloading removes it; use the export if you need to keep it.
  • Text and result never go into browser storage, the address bar, the console or usage statistics. Only the column width and your last choice of segmentation and classifier are remembered.
  • Server logs contain only numbers (messages, characters, segments, duration) and error codes, never text.
  • The models run on the LLARS server itself, not at an external provider.

Messages and what to do

Message Meaning What to do
Analysis currently unavailable The analysis service is not running or still starting. Choose "Check again" later. If it persists, tell the operator (support ticket).
Model not loaded The selected model is missing on the server. Choose another segmentation or "Segment only", or try later.
Too many characters More than 20,000 characters. Shorten the conversation or analyse it in parts.
Too many messages More than 200 messages. Split the conversation.
Too many segments The segmentation yields more than 300 units. Shorten, or segment more coarsely, e.g. "Whole message".
Role missing At least one message has no role. Add the role to the marked messages.
Time limit reached The analysis took longer than 60 seconds. Try a shorter conversation.
Too many requests More than 10 analyses within a minute. Wait about a minute, then analyse again.
No permission You lack feature:oncoco:view. Ask an admin to grant it.

After an error message LLARS no longer shows an old result, so nothing gets mixed up.


Outlook

More classifiers for counseling conversations are prepared and will appear in the same list as soon as their models are on the server.


For developers

Two routes, both with the permission feature:oncoco:view, session or API key. Every response carries Cache-Control: private, no-store.

GET /api/oncoco/tool/capabilities — what the service currently offers. If it is not running, available is false and every entry has available: false; the response is still 200.

{
  "success": true,
  "available": true,
  "segmenters": [
    {"id": "sat", "name": {"de": "Sätze (SaT-Modell)", "en": "Sentences (SaT model)"}, "available": true},
    {"id": "sentence", "name": {"de": "Sätze (Satzzeichen)", "en": "Sentences (punctuation)"}, "available": true},
    {"id": "message", "name": {"de": "Ganze Nachricht", "en": "Whole message"}, "available": true}
  ],
  "classifiers": [
    {"id": "oncoco", "name": {"de": "OnCoCo (Beratungsgespräche)", "en": "OnCoCo (counseling conversations)"},
     "scheme_id": "oncoco-1.0", "roles": ["counselor", "client"], "available": true, "labels": 68}
  ],
  "limits": {"max_chars": 20000, "max_messages": 200, "max_segments": 300, "max_top_k": 10, "timeout_seconds": 60}
}

POST /api/oncoco/tool/analyze — body {messages: [{role, text}], segmenter, classifier, top_k?}; segmenter is sat, sentence or message, classifier is oncoco or null (segment only), top_k 1 to 10 (default 3). OnCoCo requires the role counselor or client for every message.

{
  "messages": [
    {"role": "client", "text": "Hallo, ich weiß gerade nicht weiter."},
    {"role": "counselor", "text": "Schön, dass Sie schreiben. Was beschäftigt Sie?"}
  ],
  "segmenter": "sat",
  "classifier": "oncoco"
}

The response contains no text, only position and label of the segments; start/end count Unicode code points in messages[message_index].text (in JavaScript via Array.from, not String.slice). label is a node id in the OnCoCo tree (label tree via GET /api/oncoco/labels?tree=1). Response (top lists shortened):

{
  "success": true,
  "segments": [
    {"message_index": 0, "start": 0, "end": 36, "role": "client", "label": "CL-FB", "confidence": 0.91,
     "top": [{"label": "CL-FB", "confidence": 0.91}, {"label": "…", "confidence": 0.04}]},
    {"message_index": 1, "start": 0, "end": 26, "role": "counselor", "label": "CO-FA", "confidence": 0.88,
     "top": [{"label": "CO-FA", "confidence": 0.88}]},
    {"message_index": 1, "start": 27, "end": 47, "role": "counselor", "label": "CO-FA", "confidence": 0.52,
     "top": [{"label": "CO-FA", "confidence": 0.52}]}
  ],
  "distribution": [{"label": "CO-FA", "count": 2, "share": 0.6667}, {"label": "CL-FB", "count": 1, "share": 0.3333}],
  "segmenter": {"id": "sat", "model": "sat-12l-sm", "revision": "…"},
  "classifier": {"id": "oncoco", "model": "…", "revision": "…", "scheme_id": "oncoco-1.0"},
  "timings_ms": {"segment": 120, "classify": 310, "total": 430}
}

The values in the example are made up. distribution counts the labels, sorted by count, then id; share is the share of labelled segments (four decimals). Without a classifier it is empty and classifier is null.

Errors (details.code):

Status Code When
400 invalid_input invalid input; details.field names the field (body, messages, text, role, segmenter, classifier, top_k)
400 too_large limit exceeded; details.field is text, messages or segments, details.max the limit
400 role_required the classifier needs roles and at least one is missing
403 – permission missing
429 rate_limited more than 10 analyses per minute and person; details.retry_after_seconds
502 analysis_failed the service reported an error; details.reason e.g. segmenter_unavailable, classifier_unavailable, internal_error
503 analysis_unavailable analysis service not running
504 analysis_timeout no response within 60 seconds

Operating the service: Production Deployment (German runbook, section "Analyse-Dienst (Kommunikationsanalyse)") and Configuration.