版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 机关招聘面试题及答案
- 航班延误影响报表提交催办函6篇
- 2026年患者出院的护理测试题及答案
- 2026年小学规范字测试题及答案
- 2026年蚂蚁的趣闻测试题及答案
- KPI考核表岗位示例
- 服务器升级维护通知(5篇)
- 小学主题班会课件:智慧与快乐共同旅程
- 技术创新项目资金拨付通知3篇
- AI技术助力传统木雕文化数字化保护
- 2025年上海市青浦区社区工作者招聘笔试试题及答案详解
- 2026辽宁沈阳盛京金控投资集团有限公司招聘4人参考题库带答案详解AB卷
- 2026江苏苏州工业园区苏相合作区管理委员会机关人员招聘9人模拟试卷含答案详解(夺分金卷)
- 2026年职业技能大赛CAD机械设计技能竞赛理论考试重点试题库
- 2026暑假离校前校长在全体教职工大会上讲话:圆满收官迎暑假凝心聚力再出发
- 2026年广东省惠州市惠城区中考模拟道德与法治试题(含答案)
- 2026年四川省内江市“五方面人员”中选拔乡镇领导班子成员考试综合试题及答案
- GA/T 1799-2021保安安全检查通用规范
- 组织内外部环境识别表
- 2022年中国航天科技集团有限公司校园招聘笔试模拟试题及答案解析
- 毒理学基础名词解释与问答题
评论
0/150
提交评论