Mac Developer Library

Developer

LatentSemanticMapping.h Reference

Options
Deployment Target:

On This Page

LatentSemanticMapping.h Reference

Semantic Mapping This framework classifies texts based on latent semantic information.

Included Headers

  • <CoreFoundation/CoreFoundation.h>

  • <CoreServices/CoreServices.h>

  • <Carbon/Carbon.h>

  • <stdio.h>

  • <stdint.h>

Functions

Data Types

See the Overview for header-level documentation.

  • Declaration

    typedef uint32_t LSMCategory;

    Discussion

    An integral type representing a category.

    Import Statement

  • Declaration

    typedef struct __LSMMap * LSMMapRef;

    Discussion

    An opaque Core Foundation type representing an LSM map (mutable).

    Import Statement

  • Declaration

    typedef struct __LSMResult * LSMResultRef;

    Discussion

    An opaque Core Foundation type representing the result of a lookup (immutable).

    Import Statement

  • Declaration

    typedef struct __LSMResult * LSMResultRef;

    Discussion

    An opaque Core Foundation type representing the result of a lookup (immutable).

    Import Statement

  • Declaration

    typedef struct __LSMText * LSMTextRef;

    Discussion

    An opaque Core Foundation type representing an input text (mutable).

    Import Statement

Constants

See the Overview for header-level documentation.

  • Declaration

    #define kLSMAlgorithmDense CFSTR("LSMAlgorithmDense") #define kLSMAlgorithmKey CFSTR("LSMAlgorithm") #define kLSMAlgorithmSparse CFSTR("LSMAlgorithmSparse") #define kLSMDimensionKey CFSTR("LSMDimension") #define kLSMIterationsKey CFSTR("LSMIterations") #define kLSMPrecisionDouble CFSTR("LSMPrecisionDouble") #define kLSMPrecisionFloat CFSTR("LSMPrecisionFloat") #define kLSMPrecisionKey CFSTR("LSMPrecision") #define kLSMSweepAgeKey CFSTR("LSMSweepAge") #define kLSMSweepCutoffKey CFSTR("LSMSweepCutoff")

    Constants

    • kLSMAlgorithmDense

      A CFDictionary of arbitrary properties may be associated. with an LSM map. The following keys currently are interpreted by LSM, and all other keys starting with LSM... are reserved.

    • kLSMAlgorithmKey

      A CFDictionary of arbitrary properties may be associated. with an LSM map. The following keys currently are interpreted by LSM, and all other keys starting with LSM... are reserved.

    • kLSMAlgorithmSparse

      A CFDictionary of arbitrary properties may be associated. with an LSM map. The following keys currently are interpreted by LSM, and all other keys starting with LSM... are reserved.

    • kLSMDimensionKey

      A CFDictionary of arbitrary properties may be associated. with an LSM map. The following keys currently are interpreted by LSM, and all other keys starting with LSM... are reserved.

    • kLSMIterationsKey

      A CFDictionary of arbitrary properties may be associated. with an LSM map. The following keys currently are interpreted by LSM, and all other keys starting with LSM... are reserved.

    • kLSMPrecisionDouble

      A CFDictionary of arbitrary properties may be associated. with an LSM map. The following keys currently are interpreted by LSM, and all other keys starting with LSM... are reserved.

    • kLSMPrecisionFloat

      A CFDictionary of arbitrary properties may be associated. with an LSM map. The following keys currently are interpreted by LSM, and all other keys starting with LSM... are reserved.

    • kLSMPrecisionKey

      A CFDictionary of arbitrary properties may be associated. with an LSM map. The following keys currently are interpreted by LSM, and all other keys starting with LSM... are reserved.

    • kLSMSweepAgeKey

      A CFDictionary of arbitrary properties may be associated. with an LSM map. The following keys currently are interpreted by LSM, and all other keys starting with LSM... are reserved.

    • kLSMSweepCutoffKey

      A CFDictionary of arbitrary properties may be associated. with an LSM map. The following keys currently are interpreted by LSM, and all other keys starting with LSM... are reserved.

  • Declaration

    enum { kLSMMapOutOfState = -6640, kLSMMapNoSuchCategory = -6641, kLSMMapWriteError = -6642, kLSMMapBadPath = -6643, kLSMMapBadCluster = -6644, kLSMMapOverflow = -6645 };

    Constants

    • kLSMMapOutOfState

      This call cannot be issued in this map state

    • kLSMMapNoSuchCategory

      Invalid category specified

    • kLSMMapWriteError

      An error occurred writing the map

    • kLSMMapBadPath

      The URL you specified does not exist

    • kLSMMapBadCluster

      The clusters you specified are invalid

    • kLSMMapOverflow

      Cannot add more data to map

    Discussion

    Errors returned from LSM routines

  • Declaration

    enum { kLSMMapPairs = 1, kLSMMapTriplets = 2, kLSMMapHashText = 256 };

    Constants

    • kLSMMapPairs

      Use pairs in addition to single words.

    • kLSMMapTriplets

      Use triplets and pairs in addition to single words.

    • kLSMMapHashText

      Transform the text so it's not trivially human readable. Disables creation of language models.

    Discussion

    Options that can be specified for LSMMapCreate. These options can improve mapping accuracy, at a potentially significant increase in memory use.

  • Declaration

    enum { kLSMTextPreserveCase = 1, kLSMTextPreserveAcronyms = 2, kLSMTextApplySpamHeuristics = 4 };

    Constants

    • kLSMTextPreserveAcronyms

      Don't map all uppercase words to lowercase.

    • kLSMTextPreserveCase

      Don't change any words to lowercase.

    • kLSMTextApplySpamHeuristics

      Try to find words in hostile text.

    Discussion

    Options you can specify for LSMTextAddWords.

  • Declaration

    enum { kLSMResultBestWords = 1, };

    Constants

    • kLSMResultBestWords

      Find the words, rather than categories, that best match.

    Discussion

    Options for LSMResultCreate.

  • Declaration

    enum { kLSMMapDiscardCounts = 1, kLSMMapLoadMutable = 2, };

    Constants

    • kLSMMapDiscardCounts

      Don't keep counts. If specified on loading, the map needs to be reloaded without this option before calling LSMStartTraining. If specified on storing, the stored map can't be retrained at all. This option can save a lot of memory and/or disk space.

    • kLSMMapLoadMutable

      Load map as mutable in training state.

    • kLSMMapHashText

      (Defined above) If specified on storing, will hash the map if it hasn't been hashed yet.

    Discussion

    Options for LSMMap{CreateFrom,WriteTo}URL.