chore: snapshot uncommitted local work before rebasing onto cloud-agent
Safety commit so the 94 uncommitted files in the working tree (in-flight Account/Mac/Tip work plus the feature-preview recording tooling) survive the move onto cursor/cloud-agent-1787824905651-vxuwc. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -166,8 +166,12 @@ public actor ClipboardSemanticAnalyzer {
|
||||
|
||||
private static let resourceDirectory = "ClipboardSemantics"
|
||||
private static let manifestName = "clipboard-semantic-models"
|
||||
private static let maximumSemanticSegments = 8
|
||||
private static let maximumSegmentCharacters = 500
|
||||
// Segment length tracks the training corpus, whose records are single
|
||||
// sentences (zh max 33 characters, en max 138). Feeding a whole multi-
|
||||
// sentence paste as one blob puts the classifiers far out of distribution
|
||||
// and dilutes bag-of-words confidence below their routing thresholds.
|
||||
private static let maximumSemanticSegments = 24
|
||||
private static let maximumSegmentCharacters = 180
|
||||
private static let minimumSentimentConfidence = 0.65
|
||||
private static let minimumSentimentMargin = 0.15
|
||||
|
||||
@@ -356,9 +360,6 @@ public actor ClipboardSemanticAnalyzer {
|
||||
}
|
||||
|
||||
private func semanticSegments(in text: String) -> [String] {
|
||||
if text.count <= Self.maximumSegmentCharacters {
|
||||
return [text]
|
||||
}
|
||||
let tokenizer = NLTokenizer(unit: .sentence)
|
||||
tokenizer.string = text
|
||||
var segments: [String] = []
|
||||
|
||||
Reference in New Issue
Block a user