<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "LatentSemanticMapping",
  "identifier" : "/documentation/LatentSemanticMapping/LSMMapCompile(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Latent Semantic Mapping"
    ],
    "preciseIdentifier" : "c:@F@LSMMapCompile"
  },
  "title" : "LSMMapCompile(_:)"
}
-->

# LSMMapCompile(_:)

Compiles the map into executable form and puts it into mapping mode, preparing it for the classification of texts.

```
func LSMMapCompile(_ mapref: LSMMap) -> OSStatus
```

## Discussion

This function is computationally expensive.

---

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)