Datasets:
id stringlengths 34 68 | gid stringlengths 24 53 | state stringlengths 187 1.26k | common_question stringclasses 19
values | qno-target listlengths 1 512 |
|---|---|---|---|---|
customer-control-v1:42:1:churn_likelihood_level | customer-control-v1:42:1 | Conversation with account holder Harbor-65673ba098.\nCustomer message: I need access restored after changing the email address used to sign in. That is the request I want you to handle first.\nSupport: Please tell us more.\nCustomer response: This is frustrating, but I appreciate your help and will keep this constructi... | Churn likelihood level. This is a local ordinal intention rubric, not an empirically calibrated prediction of future churn. Evaluate the customer's stated continuation intent. If intent was explicitly withheld or not discussed, the synthetic generator has three equally likely latent intention levels. | [
{
"kind": "choice",
"metadata": "{\"case_name\": \"customer_support_fanout_control\", \"control_latents\": {\"ambiguity\": \"none\", \"categories\": [\"account\"], \"churn\": 1, \"frustration\": 1, \"refund\": false, \"repro\": false, \"severity\": 0}, \"entity_ids\": [\"Harbor-65673ba098\"], \"family\": \"... |
customer-control-v1:42:2:churn_likelihood_level | customer-control-v1:42:2 | Conversation with account holder Harbor-171ebedb3f.\nCustomer message: Exporting a report fails. I haven't tested the desktop route and don't know whether an alternative works. That is the request I want you to handle first.\nSupport: Please tell us more.\nCustomer response: I open a saved report, then click Export; th... | Churn likelihood level. This is a local ordinal intention rubric, not an empirically calibrated prediction of future churn. Evaluate the customer's stated continuation intent. If intent was explicitly withheld or not discussed, the synthetic generator has three equally likely latent intention levels. | [
{
"kind": "choice",
"metadata": "{\"case_name\": \"customer_support_fanout_control\", \"control_latents\": {\"ambiguity\": \"bug_severity\", \"categories\": [\"bug_report\"], \"churn\": 2, \"frustration\": 1, \"refund\": false, \"repro\": true, \"severity\": 2}, \"entity_ids\": [\"Harbor-171ebedb3f\"], \"fa... |
customer-control-v1:42:3:churn_likelihood_level | customer-control-v1:42:3 | Customer Harbor-7e3fd7035c: Report export fails through every available method, so I cannot complete my filing. That is the request I want you to handle first.\nAgent: Could you add the details?\nCustomer: It happens sometimes, but I cannot recall the sequence that led to it. I am furious. This treatment is outrageous ... | Churn likelihood level. This is a local ordinal intention rubric, not an empirically calibrated prediction of future churn. Evaluate the customer's stated continuation intent. If intent was explicitly withheld or not discussed, the synthetic generator has three equally likely latent intention levels. | [
{
"kind": "choice",
"metadata": "{\"case_name\": \"customer_support_fanout_control\", \"control_latents\": {\"ambiguity\": \"churn_likelihood_level\", \"categories\": [\"bug_report\"], \"churn\": 2, \"frustration\": 2, \"refund\": false, \"repro\": false, \"severity\": 2}, \"entity_ids\": [\"Harbor-7e3fd703... |
customer-control-v1:42:4:churn_likelihood_level | customer-control-v1:42:4 | Conversation with account holder Harbor-f24d8a39ef.\nCustomer message: Exporting a report fails, but I can download the CSV and finish in the desktop app. That is the request I want you to handle first.\nSupport: Please tell us more.\nCustomer response: It happens sometimes, but I cannot recall the sequence that led to... | Churn likelihood level. This is a local ordinal intention rubric, not an empirically calibrated prediction of future churn. Evaluate the customer's stated continuation intent. If intent was explicitly withheld or not discussed, the synthetic generator has three equally likely latent intention levels. | [
{
"kind": "choice",
"metadata": "{\"case_name\": \"customer_support_fanout_control\", \"control_latents\": {\"ambiguity\": \"none\", \"categories\": [\"bug_report\"], \"churn\": 0, \"frustration\": 2, \"refund\": false, \"repro\": false, \"severity\": 1}, \"entity_ids\": [\"Harbor-f24d8a39ef\"], \"family\":... |
customer-control-v1:42:5:churn_likelihood_level | customer-control-v1:42:5 | Conversation with account holder Harbor-c57379e129.\nCustomer message: I would like an offline reading mode, which this product does not currently offer. That is the request I want you to handle first.\nSupport: Please tell us more.\nCustomer response: I am furious. This treatment is outrageous and completely unaccepta... | Churn likelihood level. This is a local ordinal intention rubric, not an empirically calibrated prediction of future churn. Evaluate the customer's stated continuation intent. If intent was explicitly withheld or not discussed, the synthetic generator has three equally likely latent intention levels. | [
{
"kind": "choice",
"metadata": "{\"case_name\": \"customer_support_fanout_control\", \"control_latents\": {\"ambiguity\": \"none\", \"categories\": [\"feature_request\"], \"churn\": 2, \"frustration\": 2, \"refund\": false, \"repro\": false, \"severity\": 0}, \"entity_ids\": [\"Harbor-c57379e129\"], \"fami... |
customer-control-v1:42:6:churn_likelihood_level | customer-control-v1:42:6 | Conversation with account holder Harbor-b61817726d.\nCustomer message: My card was charged twice for the same monthly invoice. That is the request I want you to handle first.\nSupport: Please tell us more.\nCustomer response: Please explain this charge; I am not asking for money back. This is frustrating, but I appreci... | Churn likelihood level. This is a local ordinal intention rubric, not an empirically calibrated prediction of future churn. Evaluate the customer's stated continuation intent. If intent was explicitly withheld or not discussed, the synthetic generator has three equally likely latent intention levels. | [
{
"kind": "choice",
"metadata": "{\"case_name\": \"customer_support_fanout_control\", \"control_latents\": {\"ambiguity\": \"none\", \"categories\": [\"billing\"], \"churn\": 1, \"frustration\": 1, \"refund\": false, \"repro\": false, \"severity\": 0}, \"entity_ids\": [\"Harbor-b61817726d\"], \"family\": \"... |
customer-control-v1:42:7:churn_likelihood_level | customer-control-v1:42:7 | Conversation with account holder Harbor-3ca9e8a3f3.\nCustomer message: Exporting a report fails. I haven't tested the desktop route and don't know whether an alternative works. That is the request I want you to handle first.\nSupport: Please tell us more.\nCustomer response: I open a saved report, then click Export; th... | Churn likelihood level. This is a local ordinal intention rubric, not an empirically calibrated prediction of future churn. Evaluate the customer's stated continuation intent. If intent was explicitly withheld or not discussed, the synthetic generator has three equally likely latent intention levels. | [
{
"kind": "choice",
"metadata": "{\"case_name\": \"customer_support_fanout_control\", \"control_latents\": {\"ambiguity\": \"bug_severity\", \"categories\": [\"bug_report\"], \"churn\": 0, \"frustration\": 2, \"refund\": false, \"repro\": true, \"severity\": 2}, \"entity_ids\": [\"Harbor-3ca9e8a3f3\"], \"fa... |
customer-control-v1:42:8:churn_likelihood_level | customer-control-v1:42:8 | Customer Harbor-a63912706e: I need access restored after changing the email address used to sign in. That is the request I want you to handle first.\nAgent: Could you add the details?\nCustomer: This is frustrating, but I appreciate your help and will keep this constructive. I have decided to leave. Please cancel my su... | Churn likelihood level. This is a local ordinal intention rubric, not an empirically calibrated prediction of future churn. Evaluate the customer's stated continuation intent. If intent was explicitly withheld or not discussed, the synthetic generator has three equally likely latent intention levels. | [
{
"kind": "choice",
"metadata": "{\"case_name\": \"customer_support_fanout_control\", \"control_latents\": {\"ambiguity\": \"none\", \"categories\": [\"account\"], \"churn\": 2, \"frustration\": 1, \"refund\": false, \"repro\": false, \"severity\": 0}, \"entity_ids\": [\"Harbor-a63912706e\"], \"family\": \"... |
customer-control-v1:42:12:churn_likelihood_level | customer-control-v1:42:12 | Customer Harbor-f1aee84fff: I would like an offline reading mode, which this product does not currently offer. Report export fails through every available method, so I cannot complete my filing. Both of those requests matter equally to me; I have not chosen one to address first.\nAgent: Could you add the details?\nCust... | Churn likelihood level. This is a local ordinal intention rubric, not an empirically calibrated prediction of future churn. Evaluate the customer's stated continuation intent. If intent was explicitly withheld or not discussed, the synthetic generator has three equally likely latent intention levels. | [
{
"kind": "choice",
"metadata": "{\"case_name\": \"customer_support_fanout_control\", \"control_latents\": {\"ambiguity\": \"category\", \"categories\": [\"feature_request\", \"bug_report\"], \"churn\": 0, \"frustration\": 2, \"refund\": false, \"repro\": true, \"severity\": 2}, \"entity_ids\": [\"Harbor-f1... |
customer-control-v1:42:13:churn_likelihood_level | customer-control-v1:42:13 | Conversation with account holder Harbor-cb8e694867.\nCustomer message: The report heading is misaligned, but every report function still works. That is the request I want you to handle first.\nSupport: Please tell us more.\nCustomer response: It happens sometimes, but I cannot recall the sequence that led to it. I am f... | Churn likelihood level. This is a local ordinal intention rubric, not an empirically calibrated prediction of future churn. Evaluate the customer's stated continuation intent. If intent was explicitly withheld or not discussed, the synthetic generator has three equally likely latent intention levels. | [
{
"kind": "choice",
"metadata": "{\"case_name\": \"customer_support_fanout_control\", \"control_latents\": {\"ambiguity\": \"none\", \"categories\": [\"bug_report\"], \"churn\": 1, \"frustration\": 2, \"refund\": false, \"repro\": false, \"severity\": 0}, \"entity_ids\": [\"Harbor-cb8e694867\"], \"family\":... |
customer-control-v1:42:15:churn_likelihood_level | customer-control-v1:42:15 | Conversation with account holder Harbor-c5b71f4d32.\nCustomer message: Exporting a report fails. I haven't tested the desktop route and don't know whether an alternative works. That is the request I want you to handle first.\nSupport: Please tell us more.\nCustomer response: I open a saved report, then click Export; th... | Churn likelihood level. This is a local ordinal intention rubric, not an empirically calibrated prediction of future churn. Evaluate the customer's stated continuation intent. If intent was explicitly withheld or not discussed, the synthetic generator has three equally likely latent intention levels. | [
{
"kind": "choice",
"metadata": "{\"case_name\": \"customer_support_fanout_control\", \"control_latents\": {\"ambiguity\": \"bug_severity\", \"categories\": [\"bug_report\"], \"churn\": 2, \"frustration\": 2, \"refund\": false, \"repro\": true, \"severity\": 2}, \"entity_ids\": [\"Harbor-c5b71f4d32\"], \"fa... |
customer-control-v1:42:16:churn_likelihood_level | customer-control-v1:42:16 | Conversation with account holder Harbor-7fe7dafeec.\nCustomer message: I would like an offline reading mode, which this product does not currently offer. That is the request I want you to handle first.\nSupport: Please tell us more.\nCustomer response: Well, that was something. I will keep using the service and renew m... | Churn likelihood level. This is a local ordinal intention rubric, not an empirically calibrated prediction of future churn. Evaluate the customer's stated continuation intent. If intent was explicitly withheld or not discussed, the synthetic generator has three equally likely latent intention levels. | [
{
"kind": "choice",
"metadata": "{\"case_name\": \"customer_support_fanout_control\", \"control_latents\": {\"ambiguity\": \"frustration\", \"categories\": [\"feature_request\"], \"churn\": 0, \"frustration\": 1, \"refund\": false, \"repro\": false, \"severity\": 0}, \"entity_ids\": [\"Harbor-7fe7dafeec\"],... |
customer-control-v1:42:17:churn_likelihood_level | customer-control-v1:42:17 | Conversation with account holder Harbor-5a48c612a6.\nCustomer message: I would like an offline reading mode, which this product does not currently offer. That is the request I want you to handle first.\nSupport: Please tell us more.\nCustomer response: Thanks for checking. I am simply reporting what I observed. We have... | Churn likelihood level. This is a local ordinal intention rubric, not an empirically calibrated prediction of future churn. Evaluate the customer's stated continuation intent. If intent was explicitly withheld or not discussed, the synthetic generator has three equally likely latent intention levels. | [
{
"kind": "choice",
"metadata": "{\"case_name\": \"customer_support_fanout_control\", \"control_latents\": {\"ambiguity\": \"churn_likelihood_level\", \"categories\": [\"feature_request\"], \"churn\": 2, \"frustration\": 0, \"refund\": false, \"repro\": false, \"severity\": 0}, \"entity_ids\": [\"Harbor-5a4... |
customer-control-v1:42:18:churn_likelihood_level | customer-control-v1:42:18 | Conversation with account holder Harbor-ab5dab5faa.\nCustomer message: Exporting a report fails. I haven't tested the desktop route and don't know whether an alternative works. That is the request I want you to handle first.\nSupport: Please tell us more.\nCustomer response: It happens sometimes, but I cannot recall th... | Churn likelihood level. This is a local ordinal intention rubric, not an empirically calibrated prediction of future churn. Evaluate the customer's stated continuation intent. If intent was explicitly withheld or not discussed, the synthetic generator has three equally likely latent intention levels. | [
{
"kind": "choice",
"metadata": "{\"case_name\": \"customer_support_fanout_control\", \"control_latents\": {\"ambiguity\": \"bug_severity\", \"categories\": [\"bug_report\"], \"churn\": 2, \"frustration\": 0, \"refund\": false, \"repro\": false, \"severity\": 2}, \"entity_ids\": [\"Harbor-ab5dab5faa\"], \"f... |
customer-control-v1:42:19:churn_likelihood_level | customer-control-v1:42:19 | Conversation with account holder Harbor-4722d25b9b.\nCustomer message: Report export fails through every available method, so I cannot complete my filing. That is the request I want you to handle first.\nSupport: Please tell us more.\nCustomer response: It happens sometimes, but I cannot recall the sequence that led to... | Churn likelihood level. This is a local ordinal intention rubric, not an empirically calibrated prediction of future churn. Evaluate the customer's stated continuation intent. If intent was explicitly withheld or not discussed, the synthetic generator has three equally likely latent intention levels. | [
{
"kind": "choice",
"metadata": "{\"case_name\": \"customer_support_fanout_control\", \"control_latents\": {\"ambiguity\": \"churn_likelihood_level\", \"categories\": [\"bug_report\"], \"churn\": 2, \"frustration\": 1, \"refund\": false, \"repro\": false, \"severity\": 2}, \"entity_ids\": [\"Harbor-4722d25b... |
customer-control-v1:42:22:churn_likelihood_level | customer-control-v1:42:22 | Conversation with account holder Harbor-c21cf64516.\nCustomer message: My card was charged twice for the same monthly invoice. That is the request I want you to handle first.\nSupport: Please tell us more.\nCustomer response: Last month's refund has arrived. Today I only want the invoice explained. I am furious. This t... | Churn likelihood level. This is a local ordinal intention rubric, not an empirically calibrated prediction of future churn. Evaluate the customer's stated continuation intent. If intent was explicitly withheld or not discussed, the synthetic generator has three equally likely latent intention levels. | [
{
"kind": "choice",
"metadata": "{\"case_name\": \"customer_support_fanout_control\", \"control_latents\": {\"ambiguity\": \"none\", \"categories\": [\"billing\"], \"churn\": 0, \"frustration\": 2, \"refund\": false, \"repro\": false, \"severity\": 0}, \"entity_ids\": [\"Harbor-c21cf64516\"], \"family\": \"... |
customer-control-v1:42:23:churn_likelihood_level | customer-control-v1:42:23 | Conversation with account holder Harbor-0b5c5faf7a.\nCustomer message: My card was charged twice for the same monthly invoice. That is the request I want you to handle first.\nSupport: Please tell us more.\nCustomer response: Please explain this charge; I am not asking for money back. This is frustrating, but I appreci... | Churn likelihood level. This is a local ordinal intention rubric, not an empirically calibrated prediction of future churn. Evaluate the customer's stated continuation intent. If intent was explicitly withheld or not discussed, the synthetic generator has three equally likely latent intention levels. | [
{
"kind": "choice",
"metadata": "{\"case_name\": \"customer_support_fanout_control\", \"control_latents\": {\"ambiguity\": \"none\", \"categories\": [\"billing\"], \"churn\": 0, \"frustration\": 1, \"refund\": false, \"repro\": false, \"severity\": 0}, \"entity_ids\": [\"Harbor-0b5c5faf7a\"], \"family\": \"... |
customer-control-v1:42:24:churn_likelihood_level | customer-control-v1:42:24 | Conversation with account holder Harbor-08aef0189a.\nCustomer message: My card was charged twice for the same monthly invoice. That is the request I want you to handle first.\nSupport: Please tell us more.\nCustomer response: Please apply a credit for the extra payment to my next invoice. This is frustrating, but I app... | Churn likelihood level. This is a local ordinal intention rubric, not an empirically calibrated prediction of future churn. Evaluate the customer's stated continuation intent. If intent was explicitly withheld or not discussed, the synthetic generator has three equally likely latent intention levels. | [
{
"kind": "choice",
"metadata": "{\"case_name\": \"customer_support_fanout_control\", \"control_latents\": {\"ambiguity\": \"none\", \"categories\": [\"billing\"], \"churn\": 2, \"frustration\": 1, \"refund\": true, \"repro\": false, \"severity\": 0}, \"entity_ids\": [\"Harbor-08aef0189a\"], \"family\": \"r... |
End of preview. Expand in Data Studio
Sample script to tokenize the dataset:
import datasets
from nltk.tokenize import wordpunct_tokenize
hf_openjev_dataset_id = "Man1103/OpenJev-Refactored"
hf_openjev_dataset = datasets.load_dataset(path=hf_openjev_dataset_id, cache_dir="/content/data/jev/curated")
def get_corpus(dataset):
total_corpus_list = []
for data in dataset:
state = data["state"]
for qno_target in data["qno-target"]:
question = qno_target["question"]
options = ",".join([option for option in qno_target["options"]])
total_corpus_list.append(question + options + state)
return total_corpus_list
curated_dataset_train = hf_openjev_dataset["train"]
train_list = get_corpus(curated_dataset_train)
curated_dataset_test = hf_openjev_dataset["test"]
test_list = get_corpus(curated_dataset_test)
curated_dataset_val = hf_openjev_dataset["validation"]
val_list = get_corpus(curated_dataset_val)
total_corpus = train_list + test_list + val_list
total_corpus = ",".join(total_corpus)
tokens = wordpunct_tokenize(total_corpus)
vocab = set(tokens)
token2idx = {token: idx for idx, token in enumerate(vocab)}
idx2token = {idx: token for idx, token in enumerate(vocab)}
print(f"Token count: {len(tokens)}, Vocab size: {len(vocab)}")
Sample script to build training dataloader from the dataset:
import numpy as np
import torch
from torch.utils.data import DataLoader
from nltk.tokenize import wordpunct_tokenize
from datasets import Dataset
padding_token_id = token2idx["[PAD]"]
unk_token_id = token2idx["[UNK]"]
context_window = 1024
target_window = 20
def preprocess_function(batch):
# Lists to store batch outputs
all_states = []
all_qnos = []
all_targets = []
# Process multiple samples in the batch efficiently
for i in range(len(batch["state"])):
state_str = batch["state"][i]
# Look up key safely if naming changed slightly (e.g., options vs qno-target)
qno_targets = batch.get("qno-target", batch.get("options", []))[i]
for qno_target in qno_targets:
question = qno_target["question"]
options = ",".join([option for option in qno_target["options"]])
qno_str = question + options
target = qno_target["target"]
# 1. Tokenize into raw strings first
state_tokens = wordpunct_tokenize(state_str)
qno_tokens = wordpunct_tokenize(qno_str)
# 2. Convert to integer IDs FIRST (safely using UNK)
state_ids = [token2idx.get(t, unk_token_id) for t in state_tokens]
qno_ids = [token2idx.get(t, unk_token_id) for t in qno_tokens]
# 3. NOW apply numerical truncation or padding safely
if len(state_ids) < context_window:
state_ids += [padding_token_id] * (context_window - len(state_ids))
else:
state_ids = state_ids[:context_window]
if len(qno_ids) < context_window:
qno_ids += [padding_token_id] * (context_window - len(qno_ids))
else:
qno_ids = qno_ids[:context_window]
if len(target) < target_window:
target = list(target) + [0] * (target_window - len(target))
else:
target = list(target)[:target_window]
all_states.append(state_ids)
all_qnos.append(qno_ids)
all_targets.append(target)
return {"state_ids": all_states, "qno_ids": all_qnos, "target_ids": all_targets}
# NATIVE HUGGING FACE PIPELINE
# Map your curated dataset over your preprocessing function (batched is fast!)
curated_dataset_train = hf_openjev_dataset["train"]
processed_dataset = curated_dataset_train.map(
preprocess_function,
batched=True,
remove_columns=curated_dataset_train.column_names
)
# Set format directly to PyTorch tensors so it mimics a TensorDataset
processed_dataset.set_format(type="torch", columns=["state_ids", "qno_ids", "target_ids"])
# Use the native PyTorch DataLoader directly with the HF Dataset
training_dataloader = DataLoader(
dataset=processed_dataset,
batch_size=32,
shuffle=True,
num_workers=2
)
print(f"Total processed samples: {len(processed_dataset)}")
print(f"Total batches: {len(training_dataloader)}")
For researchers only - this is the script used to clone and curate this dataset from original dataset TypeSafeAI/Open-Jev:
def create_curated_dataset(dataset, max_samples: int):
selected_dataset = dataset.select(range(max_sample)) if hasattr(dataset, "select") else dataset.select(range(min(max_sample, len(dataset))))
# 2. OPTIMIZATION: Group by 'group_id' in O(N) time instead of using .filter() in a loop
grouped_data = defaultdict(list)
for row in selected_dataset:
grouped_data[row["group_id"]].append(row)
curated_list = []
# 3. Process grouped data
for gid, rows in grouped_data.items():
full_gid_sample = {}
options_list = []
for data in rows:
id = data["id"]
sample_kind = data["kind"]
state = data["state_json"].strip('"').strip("'")
question_id = data["id"]
question = data["question"].strip('"').strip("'")
options = [option.strip('"').strip("'") for option in data["options"]]
target = data["target"]
metadata = data["metadata_json"]
qno_dict = {
"question_id": question_id,
"kind": sample_kind,
"question": question,
"options": options,
"target": target,
"metadata": metadata
}
full_gid_sample["id"] = id
full_gid_sample["gid"] = gid
full_gid_sample["state"] = state
full_gid_sample["common_question"] = question
options_list.append(qno_dict)
full_gid_sample["qno-target"] = options_list
curated_list.append(full_gid_sample)
# 4. FINAL CONVERSION: Cast your curated list back to a Hugging Face Dataset
curated_dataset = Dataset.from_list(curated_list)
return curated_dataset
# 1. FIX: Grab the first 10 elements consistently using select
train_set = jev_dataset["train"]
max_sample = len(train_set)
curated_dataset_train = create_curated_dataset(train_set, max_sample)
val_set = jev_dataset["validation"]
max_sample = len(val_set)
curated_dataset_val = create_curated_dataset(val_set, max_sample)
test_set = jev_dataset["test"]
max_sample = len(test_set)
curated_dataset_test = create_curated_dataset(test_set, max_sample)
hf_curated_dataset = datasets.DatasetDict({
"train": curated_dataset_train,
"validation": curated_dataset_val,
"test": curated_dataset_test
})
# Inspect your new standard Hugging Face dataset
print(hf_curated_dataset)
- Downloads last month
- 66