语言处理与潜在主题分析_第1页
语言处理与潜在主题分析_第2页
语言处理与潜在主题分析_第3页
语言处理与潜在主题分析_第4页
语言处理与潜在主题分析_第5页
已阅读5页,还剩23页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

14.0LinguisticProcessingandLatentTopicAnalysis

语言处理与潜在主题分析1

数位语音处理概论IntroductiontoDigitalSpeechProcessingDocumentsWordsTopicTkLatentSemanticAnalysis(LSA)2LatentSemanticAnalysis(LSA)-Word-DocumentMatrixRepresentationVocabularyVofsizeMandCorpusTofsizeNV={w1,w2,...wi,..wM},wi:thei-thword,e.g.M=2×104

T={d1,d2,...dj,..dN},dj:thej-thdocument,e.g.N=105cij:numberoftimeswioccursindj

nj:totalnumberofwordspresentindj

ti=Σj

cij:totalnumberoftimeswioccursinT

Word-DocumentMatrixW

W=[wij]eachrowofWisaN-dim“featurevector”forawordwiwithrespecttoalldocumentsdj eachcolumnofWisaM-dim“featurevector”foradocumentdjwithrespecttoallwordswid1d2........dj..........dNw1w2.wiwMwij3LatentSemanticAnalysis(LSA)j4DimensionalityReduction(1/2)

dimensionalityreduction:selectionofRlargesteigenvalues(R=800forexample)T2R“concepts”or“latentsemanticconcepts”5DimensionalityReduction(2/2)

dimensionalityreduction:selectionofRlargesteigenvalues2TTsi2

:weights(significanceofthe“componentmatrices”e′ie′iT)R“concepts”or“latentsemanticconcepts”(i,j)elementofWTW:innerproductofi-thandj-thcolumnsofW

“similarity”betweendianddjTNN6SingularValueDecomposition(SVD)

SingularValueDecomposition(SVD)

si:singularvalues,s1≥s2....≥sR U:leftsingularmatrix,V:rightsingularmatrixVectorsforwordwi:uiS=ui(arow)avectorwithdimensionalityNreducedtoavectoruiS=uiwithdimensionalityRN-dimensionalspacedefinedbyNdocumentsreducedtoR-dimensionalspacedefinedbyR“concepts”theRrowvectorsofVT,orcolumnvectorsofV,oreigenvectors{e′1,..e′R},aretheRorthonormalbasisforthe“latentsemanticspace”withdimensionalityR,withwhichuiS=u

iisrepresentedwordswithsimilar“semanticconcepts”have“closer”locationinthe“latentsemanticspace”theytendtoappearinsimilar“types”ofdocuments,althoughnotnecessarilyinexactlythesamedocumentsd1d2........dj..........dNw1w2wiwMwij=w1w2wiwMuiUR×Rs1sRd1d2........dj..........dNVTR×NM×RvjT7SingularValueDecomposition(SVD)dp=USvpT(justasacolumninW=USVT)8SingularValueDecomposition(SVD)

SingularValueDecomposition(SVD)

Vectorsfordocumentdj:vjS=vj(arow,orvj=SvjTforacolumn)avectorwithdimentionalityMreducedtoavectorvjS=vjwithdimentionalityRM-dimentionalspacedefinedbyMwordsreducedtoR-dimentionalspacedefinedbyR“concepts”theRcolumnsofU,oreigenvectors{e1,...eR},aretheRorthonormalbasisforthe“latentsemanticspace”withdimensionalityR,withwhichvjS=vjisrepresenteddocumentswithsimilar“semanticconcepts”have“closer”locationinthe“latentsemanticspace”theytendtoincludesimilar“types”ofwords,althoughnotnecessarilyexactlythesamewordsTheAssociationStructurebetweenwordswianddocuments

djispreservedwithnoisyinformationdeleted,whilethedimensionalityisreducedtoacommonsetofR“concepts”d1d2........dj..........dNw1w2wiwMwij=w1w2wiwMuiUR×Rs1sRd1d2........dj..........dNvjVTR×NM×RTT9ExampleApplicationsinLinguisticProcessing

WordClustering

exampleapplications:class-basedlanguagemodeling,informationretrieval,etc.wordswithsimilar“semanticconcepts”have“closer”locationinthe“latentsemanticspace”theytendtoappearinsimilar“types”ofdocuments,althoughnotnecessarilyinexactlythesamedocumentseachcomponentinthereducedwordvectorujS=ujisthe“association”ofthewordwiththecorresponding“concept”examplesimilaritymeasurebetweentwowords:DocumentClusteringexampleapplications:clusteredlanguagemodeling,languagemodeladaptation,informationretrieval,etc.documentswithsimilar“semanticconcepts”have“closer”locationinthe“latentsemanticspace”theytendtoincludesimilar“types”ofwords,althoughnotnecessarilyexactlythesamewordseachcomponentonthereduceddocumentvectorvjS=vjisthe“association”ofthedocumentwiththecorresponding“concept”example“similarity”measurebetweentwodocuments:2210LSAforLinguisticProcessing

CosineSimilarity

magnitudeSimilarity

11ExampleApplicationsinLinguisticProcessingInformationRetrieval“conceptmatching”vs“lexicalmatching”:relevantdocumentsareassociatedwithsimilar“concepts”,butmaynotincludeexactlythesamewordsexampleapproach:treatingthequeryasanewdocument(by“folding-in”),andevaluatingits“similarity”withallpossibledocumentsFold-in

consideranewdocumentoutsideofthetrainingcorpusT,butwithsimilarlanguagepatternsor“concepts”constructanewcolumndp,p>N,withrespecttotheMwordsassumingUandSremainunchanged dp=USvpT(justasacolumninW=USVT)

v

p=vpS=dpTUasanR-dimrepresentationofthenewdocument (i.e.obtainingtheprojectionofdponthebasiseiofUbyinnerproduct)12IntegrationwithN-gramLanguageModelsLanguageModelingforSpeechRecognitionProb(wq|dq-1) wq:theq-thwordinthecurrentdocumenttoberecognized(q:sequenceindex) dq-1:therecognizedhistoryinthecurrentdocument

v

q-1=dq-1TU:representationofdq-1byvq-1(folded-in)Prob(wq|dq-1)canbeestimatedbyuqand

v

q-1intheR-dimspaceintegrationwithN-gram Prob(wq|Hq-1)=Prob(wq|hq-1,

dq-1) Hq-1:historyuptowq-1

hq-1:<wq-n+1,wq-n+2,...wq-1>N-gramgiveslocalrelationships,whiledq-1givessemanticconceptsdq-1emphasizesmorethekeycontentwords,whileN-gramcountsallwordssimilarlyincludingfunctionwordsv

q-1fordq-1canbeestimatediterativelyassumingtheq-thwordinthecurrentdocumentiswi(n)(n)v

qmovesintheR-dimspaceinitially,eventuallysettledownsomewherei-thdimensionalityoutofMT13ProbabilisticLatentSemanticAnalysis(PLSA)ExactlythesameasLSA,usingasetoflatenttopics{}toconstructanewrelationshipbetweenthedocumentsandterms,butwithaprobabilisticframeworkTrainedwithEMbymaximizingthetotallikelihood

:frequencycountofterminthedocumentDi:

documentsTk:latenttopicstj:terms14ProbabilisticLatentSemanticAnalysis(PLSA)w:wordz:topicd:documentN:wordsindocumentdM:documentsincorpus

15

(k:topicindex,atotalofKtopics)

LatentDirichletAllocation(LDA)AdocumentisrepresentedasrandommixturesoflatenttopicsEachtopicischaracterizedbyadistributionoverwords16GibbsSamplingingeneral

17GibbsSamplingappliedonLDA…w11?w12?w13?w1n?…Doc1w21?w22?w23?w2n?…Doc2SampleP(Z,W):TopicWord18GibbsSamplingappliedonLDA…w11w12w13w1n…Doc1w21w22w23w2n…Doc2SampleP(Z,W):RandomInitialization19GibbsSamplingappliedonLDA…w11?w12w13w1n…Doc1w21w22w23w2n…Doc2SampleP(Z,W):RandomInitializationEraseZ11,anddrawanewZ11~

20GibbsSamplingappliedonLDA…w11w12?w13w1n…Doc1w21w22w23w2n…Doc2SampleP(Z,W):RandomInitializationEraseZ11,anddrawanewZ11~EraseZ12,anddrawanewZ12~

21GibbsSamplingappliedonLDAw11w12w13w1nw21w22w23w2n………Doc1Doc2SampleP(Z,W):RandomInitializationEraseZ11,anddrawanewZ11~EraseZ12,anddrawanewZ12~IterativelyupdatetopicassignmentforeachworduntilconvergeComputeθ,φaccordingtothefinalsetting

22MatrixFactorization(MF)forRecommendationsystemsMovie1Movie2Movie3Movie4Movie5Movie6Movie7Movie8Movie9UserA3.74.0UserB4.04.3UserC4.1UserD2.32.5UserE3.3UserF2.9UserG2.62.7

23MatrixFactorization(MF)Mappingbothusersanditemstoajointlatentfactorspaceofdimensionalityf

iI11uU=1uUiI1fflatentfactor:towardsmale,seriousness,etc.24MatrixFactorization(MF)

25OverfittingProblemAgoodmodelisnotjusttofitallthetrainingdataneedstocoverunseendatawellwhichmayhavedistributionsslightlydifferentfromthatoftrainingdatatoocomplicatedmodelswithtoomanyparametersusuallyleadstooverfitting26ExtensionsofMatrixFactorization(MF)BiasedMFaddglobalbiasμ

(usually=averagerating)

,userbias

bu

,anditembiasbi

asparametersNon-negativeMatrixFactorizationrestricttheva

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论