import React from 'react' import { Plus, Minus, Trash2 } from 'lucide-react' import { useZeroShotClassification } from '../../contexts/ZeroShotClassificationContext' const ZeroShotClassificationConfig = () => { const { config, setConfig, sections, addCategory, removeCategory, clearResults, updateSectionTitle } = useZeroShotClassification() return (

Zero-Shot Classification Settings

setConfig((prev) => ({ ...prev, threshold: parseFloat(e.target.value) })) } className="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer" />

Minimum confidence score required for classification (lower values classify more items)

Categories

{sections.map((section, index) => (
updateSectionTitle(index, e.target.value)} disabled={section.title === 'Other'} className="flex-1 px-2 py-1 text-xs border border-gray-300 rounded focus:outline-none focus:ring-1 focus:ring-blue-500 focus:border-blue-500 disabled:bg-gray-100 disabled:cursor-not-allowed" /> ({section.items.length})
))}

Threshold: Items with confidence scores below this threshold will be classified as "Other"

Categories: Edit category names to customize classification labels

Other: Fallback category for items that don't meet the threshold for any specific category

) } export default ZeroShotClassificationConfig