Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

MonadicLatentSemanticAnalysis

Guides

  • Latent semantic analysis pipeline functions

Symbols

  • ApplyGlobalTermFunction
  • ApplyLocalTermFunction
  • ApplyNormalizationFunction
  • DocumentTermMatrix
  • DocumentTermSSparseMatrix
  • FindMostImportantSentences
  • GlobalTermFunctionWeights
  • GlobalTermWeight
  • LSAMonAddToContext
  • LSAMonApplyTermWeightFunctions
  • LSAMonAssignContextTo
  • LSAMonAssignTo
  • LSAMonAssignValueTo
  • LSAMonBind
  • LSAMonContexts
  • LSAMonDocumentCollectionQ
  • LSAMonDropAutomaticTopicNames
  • LSAMonDropDocuments
  • LSAMonDropDocumentTermMatrix
  • LSAMonDropFromContext
  • LSAMonDropGlobalWeightFunction
  • LSAMonDropGlobalWeights
  • LSAMonDropH
  • LSAMonDropLocalWeightFunction
  • LSAMonDropMethod
  • LSAMonDropNormalizerFunction
  • LSAMonDropStatisticalThesaurus
  • LSAMonDropStemmingRules
  • LSAMonDropStopWords
  • LSAMonDropTerms
  • LSAMonDropTopicColumnPositions
  • LSAMonDropTopicsTable
  • LSAMonDropWeightedDocumentTermMatrix
  • LSAMonDropW
  • LSAMonEchoContext
  • LSAMonEchoDocumentsStatistics
  • LSAMonEchoDocumentTermMatrixStatistics
  • LSAMonEchoFunctionContext
  • LSAMonEchoFunctionValue
  • LSAMonEcho
  • LSAMonEchoStatisticalThesaurus
  • LSAMonEchoStatisticalThesaurusTable
  • LSAMonEchoTopicsTable
  • LSAMonEchoValue
  • LSAMonExtractStatisticalThesaurus
  • LSAMonExtractTopics
  • LSAMonFail
  • LSAMonFindMostImportantDocuments
  • LSAMonFold
  • LSAMonGetDocuments
  • LSAMonIfElse
  • LSAMonIf
  • LSAMonImportFromDirectory
  • LSAMonInterpretBasisVector
  • LSAMonIterate
  • LSAMonMakeBipartiteGraphMatrix
  • LSAMonMakeDocumentTermMatrix
  • LSAMonMakeGraph
  • LSAMonMakeTopicsTable
  • LSAMonModifyContext
  • LSAMonModule
  • LSAMon
  • LSAMonNest
  • LSAMonNestWhile
  • LSAMonNormalizeMatrixProduct
  • LSAMonOption
  • LSAMonPutContext
  • LSAMonPutValue
  • LSAMonRepresentByTerms
  • LSAMonRepresentByTopics
  • LSAMonRepresentDocumentTagsByTopics
  • LSAMonRetrieveFromContext
  • LSAMonSetAutomaticTopicNames
  • LSAMonSetContext
  • LSAMonSetDocuments
  • LSAMonSetDocumentTermMatrix
  • LSAMonSetGlobalWeightFunction
  • LSAMonSetGlobalWeights
  • LSAMonSetH
  • LSAMonSetLocalWeightFunction
  • LSAMonSetMethod
  • LSAMonSetNormalizerFunction
  • LSAMonSetStatisticalThesaurus
  • LSAMonSetStemmingRules
  • LSAMonSetStopWords
  • LSAMonSetTerms
  • LSAMonSetTopicColumnPositions
  • LSAMonSetTopicsTable
  • LSAMonSetValue
  • LSAMonSetWeightedDocumentTermMatrix
  • LSAMonSetW
  • LSAMonSucceed
  • LSAMonTakeAutomaticTopicNames
  • LSAMonTakeContext
  • LSAMonTakeDocuments
  • LSAMonTakeDocumentTermMatrix
  • LSAMonTakeGlobalWeightFunction
  • LSAMonTakeGlobalWeights
  • LSAMonTakeH
  • LSAMonTakeLocalWeightFunction
  • LSAMonTakeMatrix
  • LSAMonTakeMethod
  • LSAMonTakeNormalizerFunction
  • LSAMonTakeStatisticalThesaurus
  • LSAMonTakeStemmingRules
  • LSAMonTakeStopWords
  • LSAMonTakeTerms
  • LSAMonTakeTexts
  • LSAMonTakeTopicColumnPositions
  • LSAMonTakeTopicsTable
  • LSAMonTakeValue
  • LSAMonTakeWeightedDocumentTermMatrix
  • LSAMonTakeWeightedMatrix
  • LSAMonTakeW
  • LSAMonUnit
  • LSAMonUnitQ
  • LSAMonWhen
  • ToBagOfWords
  • WeightTerms
  • WeightTermsOfSSparseMatrix
  • $LSAMonFailure
AntonAntonov`MonadicLatentSemanticAnalysis`
LSAMonExtractTopics
​
LSAMonExtractTopics[n]
Extract
n
topics.
​
Details and Options

Examples  
(2)
Basic Examples  
(1)
Get USA presidents speeches:
In[1]:=
speeches=ResourceData[ResourceObject["Presidential Nomination Acceptance Speeches"]];​​texts=Normal[speeches〚All,"Text"〛];
Make the document-term matrix, extract topics, extract statistical thesaurus:
In[2]:=
res=​​
LSAMonUnit
[texts]⟹​​
LSAMonMakeDocumentTermMatrix
[{},Automatic]⟹​​
LSAMonApplyTermWeightFunctions
⟹​​
LSAMonExtractTopics
[12,Method"SVD"]⟹​​
LSAMonEchoTopicsTable
[DividersAll]⟹​​
LSAMonExtractStatisticalThesaurus
[{"war","nuclear","health"},10]⟹
LSAMonEchoStatisticalThesaurusTable
;
»
topics table:
1
1.000
jobs
0.980
tonight
0.819
america
0.768
tax
0.726
don
0.688
going
0.687
shall
0.656
values
0.650
americans
0.640
child
0.633
vietnam
0.624
let
4
1.000
democracy
-0.993
law
-0.971
vietnam
0.964
tyranny
-0.910
tonight
-0.882
increased
-0.856
crime
0.824
modern
0.816
plans
-0.787
duties
0.729
task
-0.724
bill
7
1.000
reagan
-0.596
inflation
-0.477
spending
0.466
values
0.462
eight
0.451
answer
0.446
decade
0.411
mother
-0.408
path
-0.379
opponent
0.376
revolution
0.373
black
10
1.000
path
0.771
workers
0.637
vietnam
-0.573
crusade
-0.568
bill
-0.561
housing
-0.557
drugs
-0.552
democratic
-0.548
inflation
0.526
hopeful
-0.497
gentlemen
0.489
term
2
1.000
jobs
-0.926
shall
0.714
don
0.639
parents
-0.626
agriculture
-0.618
legislation
0.616
college
-0.570
present
-0.565
duties
0.560
reagan
0.557
opponent
-0.555
principle
5
1.000
reagan
0.609
decade
0.484
vote
0.446
start
0.365
deficit
-0.360
child
0.341
inflation
-0.331
college
0.308
spending
0.302
soviet
0.300
destroy
0.298
message
8
1.000
vietnam
0.515
tradition
-0.384
goals
-0.356
housing
0.344
winning
0.329
debate
0.327
modern
-0.320
tonight
0.312
week
0.289
democracy
0.284
yes
-0.274
problem
11
1.000
groups
0.978
george
-0.925
unity
0.886
eight
-0.829
problem
0.758
surplus
0.678
opponent
-0.663
task
0.657
goals
0.644
wall
0.639
path
-0.615
fight
3
1.000
vietnam
0.890
tonight
0.768
goals
0.573
answer
0.539
dream
0.530
eisenhower
0.503
let
-0.496
products
-0.487
jobs
0.474
seek
0.461
kennedy
0.458
tradition
6
1.000
goals
0.956
kennedy
0.772
john
-0.690
opponent
0.658
quality
0.605
tonight
-0.600
answer
-0.555
spending
0.535
reagan
-0.521
programs
0.519
law
-0.506
harder
9
1.000
opponent
-0.706
groups
-0.685
agriculture
0.628
vietnam
0.620
congress
0.579
differences
-0.563
values
0.560
debate
0.557
don
-0.543
federal
-0.542
economic
0.532
appeal
12
1.000
decide
-0.559
unity
0.472
opponent
0.440
democracy
0.433
modern
-0.418
measures
0.418
going
-0.412
historic
0.407
says
0.381
tyranny
0.381
example
0.375
started
»
statistical thesaurus:
term
statistical thesaurus entries
health
{health,middle,companies,care,families,insurance,doesn,college,medicare,bless}
nuclear
{nuclear,weapons,seen,truman,learned,democrats,want,race,harry,work}
war
{war,world,far,come,makes,enjoy,past,god,dedicated,understood}
Options  
(1)

SeeAlso
LSAMonUnit
 
▪
LSAMonEchoTopicsTable
 
▪
LSAMonExtractStatisticalThesaurus
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com