UNPARTYTextClassifier.mlmodel
UNPARTYTextClassifier Documentation
Overview
UNPARTYTextClassifier.mlmodel
is a Core ML model trained to classify text into sentiment categories. The model uses a Maximum Entropy algorithm and is designed to be incrementally trained as users interact with the app.
Model Specifications
Input Features
Output Features
Model Parameters
Algorithm: Maximum Entropy
Iterations: 10
Platform Compatibility: iOS 12.0+, macOS 10.14+
Input Type: Text (String)
Output Type: Classification with probabilities
Using the Model
Basic Usage
With Probability Scores
Error Handling
Integration Points
With TextEmbeddingsService
With TrainingDataManager
Best Practices
Model Loading
Load model once at initialization
Handle loading errors gracefully
Configure model based on device capabilities
Performance
Process text on background threads
Cache results when appropriate
Monitor memory usage
Error Handling
Validate input text
Handle prediction errors
Provide fallback classifications
Model Updates
Version control model updates
Validate new training data
Test model performance after updates
Limitations
Input Constraints
Text length limitations
Language support (English primary)
Character encoding requirements
Performance Considerations
Memory usage for large texts
Processing time variations
Device compatibility requirements
Training Constraints
Minimum data requirements
Training frequency limits
Storage space needs
Related Components
TextEmbeddingsService: Uses classifications for embedding context
TrainingDataManager: Provides data for model updates
MLTrainingService: Handles model retraining
ModelPersistenceManager: Manages model versions
Last updated