<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Speech",
  "identifier" : "/documentation/Speech/SFCustomLanguageModelData/PhraseCount",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Speech"
    ],
    "preciseIdentifier" : "s:6Speech25SFCustomLanguageModelDataC11PhraseCountV"
  },
  "title" : "SFCustomLanguageModelData.PhraseCount"
}
-->

# SFCustomLanguageModelData.PhraseCount

A phrase used to bias the language model, along with a weight influencing the relative strength of the bias.

```
struct PhraseCount
```

## Topics

### Creating a weighted phrase

[`init(phrase: String, count: Int)`](/documentation/Speech/SFCustomLanguageModelData/PhraseCount/init(phrase:count:))

### Inspecting the weighted phrase

[`let count: Int`](/documentation/Speech/SFCustomLanguageModelData/PhraseCount/count)

[`let phrase: String`](/documentation/Speech/SFCustomLanguageModelData/PhraseCount/phrase)

## Relationships

### Conforms To

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`Decodable`](/documentation/Swift/Decodable)

[`Hashable`](/documentation/Swift/Hashable)

[`DataInsertable`](/documentation/Speech/DataInsertable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Encodable`](/documentation/Swift/Encodable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)