<!--
{
  "documentType" : "article",
  "framework" : "LatentSemanticMapping",
  "identifier" : "/documentation/LatentSemanticMapping/storage-flags",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Storage Flags"
}
-->

# Storage Flags

Options for loading and saving a map to a file.

## Discussion

Specify these options for [`LSMMapCreateFromURL(_:_:_:)`](/documentation/LatentSemanticMapping/LSMMapCreateFromURL(_:_:_:)) and [`LSMMapWriteToURL(_:_:_:)`](/documentation/LatentSemanticMapping/LSMMapWriteToURL(_:_:_:)).

## Topics

### Constants

[`var kLSMMapDiscardCounts: Int`](/documentation/LatentSemanticMapping/kLSMMapDiscardCounts)

An option that specifies not to keep counts.

[`var kLSMMapLoadMutable: Int`](/documentation/LatentSemanticMapping/kLSMMapLoadMutable)

An option that specifies to load the map as mutable in training state.

[`var kLSMMapHashText: Int`](/documentation/LatentSemanticMapping/kLSMMapHashText)

An option that specifies to transform the text so it’s not human-readable.



---

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)