@ -200,7 +200,7 @@
< br / >
< br / >
另一个挑战是 : 大多数情况下文本是非结构化数据 ( not structured ) 。
另一个挑战是 : 大多数情况下文本是非结构化数据 ( not structured ) 。
< / p >
< / p >
< img src = "@/assets/images/f4001.png" alt = "" style = "width: 600px ; "/ >
< img src = "@/assets/images/f4001.png" alt = "" style = "width: 600px " / >
< p style = "font-weight: 700; font-size: 22px" > 文本分析步骤 < / p >
< p style = "font-weight: 700; font-size: 22px" > 文本分析步骤 < / p >
< p >
< p >
& nbsp ; & nbsp ; & nbsp ; & nbsp ; 1. 句法分析 ( Parsing ) : 是指处理非结构化文本使其具有一定的结构 , 供将来分析的过程 。 句法分析将文本进行解构 , 然后以一种更为结构化的方式来呈现 。 ( unsturctured - > sturctured )
& nbsp ; & nbsp ; & nbsp ; & nbsp ; 1. 句法分析 ( Parsing ) : 是指处理非结构化文本使其具有一定的结构 , 供将来分析的过程 。 句法分析将文本进行解构 , 然后以一种更为结构化的方式来呈现 。 ( unsturctured - > sturctured )
@ -251,7 +251,7 @@
< li > 停止词 ( stop word ) : 在给定语言中 , 并非所有的单词都需要被考虑 。 ( 比如 : the , a , of , and , to等这些不太可能有助于语义的理解 ) < / li >
< li > 停止词 ( stop word ) : 在给定语言中 , 并非所有的单词都需要被考虑 。 ( 比如 : the , a , of , and , to等这些不太可能有助于语义的理解 ) < / li >
< li > 词根法 ( Lemmatization ) 和词干法 ( Stemming ) : 词根法看单词的意义 ( 如 : Goose , geese , goose , gander , ganders ) 。 词干法看单词的组成 ( 如 : walk , walking , Walk , walks , walked ) 。 最受欢迎的是 "Porter stemmer" , “ WordNet ” 。 < / li >
< li > 词根法 ( Lemmatization ) 和词干法 ( Stemming ) : 词根法看单词的意义 ( 如 : Goose , geese , goose , gander , ganders ) 。 词干法看单词的组成 ( 如 : walk , walking , Walk , walks , walked ) 。 最受欢迎的是 "Porter stemmer" , “ WordNet ” 。 < / li >
< li > 词袋法 ( Bag - of - words representation ) : 将文档转化成高维向量 ( high - dimensional vector ) , 向量指示了文档中各个单词的 存在 / 不存在 / 出现频率 ( presence / absence / frequency ) 。 < / li >
< li > 词袋法 ( Bag - of - words representation ) : 将文档转化成高维向量 ( high - dimensional vector ) , 向量指示了文档中各个单词的 存在 / 不存在 / 出现频率 ( presence / absence / frequency ) 。 < / li >
< img src = "@/assets/images/f4002.png" alt = "" style = "width: 600px; height: 500px; "/ >
< img src = "@/assets/images/f4002.png" alt = "" style = "width: 600px; height: 500px" / >
< p > 词袋法足够简单 ( 朴素且过分简化问题 naive and over - simplified ) 并被广泛应用于文本分析问题中 ( 是入门的好方法 ) 。 其将文档表示为一组词语 ( 单词 ) , 而忽略了其他信息 ( 如顺序 order , 上下文 context , 推论 inferences和语义 semantics ) 。 比如 , “ a dog bites a man ” 和 "a man bites a dog" 意思完全不同但是他们在词袋法里是同一种表示 。 < / p >
< p > 词袋法足够简单 ( 朴素且过分简化问题 naive and over - simplified ) 并被广泛应用于文本分析问题中 ( 是入门的好方法 ) 。 其将文档表示为一组词语 ( 单词 ) , 而忽略了其他信息 ( 如顺序 order , 上下文 context , 推论 inferences和语义 semantics ) 。 比如 , “ a dog bites a man ” 和 "a man bites a dog" 意思完全不同但是他们在词袋法里是同一种表示 。 < / p >
< li > 语料库的表示 ( Representation of a corpus ) : 语料库可以大到包括一种或者多种语言的所有文档 , 也可以小到仅限于特定领域 ( focused on a specific domains ) 。 < / li >
< li > 语料库的表示 ( Representation of a corpus ) : 语料库可以大到包括一种或者多种语言的所有文档 , 也可以小到仅限于特定领域 ( focused on a specific domains ) 。 < / li >
< p >
< p >
@ -383,7 +383,7 @@
< br / >
< br / >
分类方法 ( 朴素贝叶斯 , 最大熵 , 或者支持向量机SVM ) 经常被用来提取语料库统计以用于情感分析 。
分类方法 ( 朴素贝叶斯 , 最大熵 , 或者支持向量机SVM ) 经常被用来提取语料库统计以用于情感分析 。
< / p >
< / p >
< img src = "@/assets/images/f4013.png" alt = "" style = "width: 600px; height: 300px; "/ >
< img src = "@/assets/images/f4013.png" alt = "" style = "width: 600px; height: 300px" / >
< p > 分类器仅基于对其进行训练的数据集来确定情感 : < / p >
< p > 分类器仅基于对其进行训练的数据集来确定情感 : < / p >
< li > 词义随着领域不同而改变 。 < / li >
< li > 词义随着领域不同而改变 。 < / li >
< li > 因此模型无法直接应用于其他领域 。 < / li >
< li > 因此模型无法直接应用于其他领域 。 < / li >
@ -401,15 +401,15 @@
< p style = "font-weight: 700; font-size: 22px" > 获得结果 ( gaining insights ) < / p >
< p style = "font-weight: 700; font-size: 22px" > 获得结果 ( gaining insights ) < / p >
< p style = "font-weight: 600; font-size: 18px" > 词云 ( word cloud ) < / p >
< p style = "font-weight: 600; font-size: 18px" > 词云 ( word cloud ) < / p >
< p > 五星好评的词云 < / p >
< p > 五星好评的词云 < / p >
< img src = "@/assets/images/f4015.png" alt = "" style = "width: 600px; height: 400px; "/ >
< img src = "@/assets/images/f4015.png" alt = "" style = "width: 600px; height: 400px" / >
< p > 一星差评的词云 : < / p >
< p > 一星差评的词云 : < / p >
< img src = "@/assets/images/f4016.png" alt = "" / >
< img src = "@/assets/images/f4016.png" alt = "" / >
< p > TFIDF能够用来凸显评论中有信息量的单词 。 < / p >
< p > TFIDF能够用来凸显评论中有信息量的单词 。 < / p >
< img src = "@/assets/images/f4017.png" alt = "" style = "width: 600px; height: 400px; "/ >
< img src = "@/assets/images/f4017.png" alt = "" style = "width: 600px; height: 400px" / >
< p > LDA可以把评论归类为主题 。 圆盘的大小代表了词的权重 。 < / p >
< p > LDA可以把评论归类为主题 。 圆盘的大小代表了词的权重 。 < / p >
< img src = "@/assets/images/f4018.png" alt = "" style = "width: 600px; height: 400px; "/ >
< img src = "@/assets/images/f4018.png" alt = "" style = "width: 600px; height: 400px" / >
< p > 另一种可视化方式 。 < / p >
< p > 另一种可视化方式 。 < / p >
< img src = "@/assets/images/f4019.png" alt = "" style = "width: 600px; height: 400px; "/ >
< img src = "@/assets/images/f4019.png" alt = "" style = "width: 600px; height: 400px" / >
< / div >
< / div >
< / template >
< / template >
< / popModel >
< / popModel >
@ -501,6 +501,7 @@ const aCommentOpinion = ref([]);
/ / 下 载 状 态
/ / 下 载 状 态
const downloadStatus = ref ( false ) ;
const downloadStatus = ref ( false ) ;
/ / 提 交 校 验
/ / 提 交 校 验
const flat = ref ( false ) ;
const g _submitVerification = ref ( {
const g _submitVerification = ref ( {
max : "13" ,
max : "13" ,
frequency : "3" ,
frequency : "3" ,
@ -590,7 +591,6 @@ const knowledgeImport = () => {
} ;
} ;
/ / 实 训 任 务 提 交
/ / 实 训 任 务 提 交
const submitTask = ( ) => {
const submitTask = ( ) => {
let flat = false ;
for ( let key in formInline . value ) {
for ( let key in formInline . value ) {
if ( formInline . value [ key ] == "" ) {
if ( formInline . value [ key ] == "" ) {
const label = tableLabel . find ( ( item ) => item . prop == key ) ;
const label = tableLabel . find ( ( item ) => item . prop == key ) ;
@ -600,7 +600,7 @@ const submitTask = () => {
if ( formInline . value [ key ] != g _submitVerification . value [ key ] ) {
if ( formInline . value [ key ] != g _submitVerification . value [ key ] ) {
const label = tableLabel . find ( ( item ) => item . prop == key ) ;
const label = tableLabel . find ( ( item ) => item . prop == key ) ;
proxy . $modal . msgWarning ( ` ${ label . label } 错误 ` ) ;
proxy . $modal . msgWarning ( ` ${ label . label } 错误 ` ) ;
flat = true ;
flat . value = true ;
return ;
return ;
}
}
}
}
@ -609,7 +609,7 @@ const submitTask = () => {
. submit ( {
. submit ( {
userId : n _dataTableQuery . value . userId ,
userId : n _dataTableQuery . value . userId ,
taskName : "情感分析" ,
taskName : "情感分析" ,
numberOfErrors : flat ? 1 : 0 ,
numberOfErrors : flat . value ? 1 : 0 ,
} )
} )
. then ( ( res ) => {
. then ( ( res ) => {
dialogVisible . value = false ;
dialogVisible . value = false ;
@ -937,11 +937,10 @@ const switchingModels = () => {
}
}
}
}
. startOver {
. startOver {
margin - left : - 10 px ;
width : 150 px ;
width : 205 px ;
height : 40 px ;
height : 55 px ;
background : # 00 f4ff ;
background : # 00 f4ff ;
/ / 水 平 居 中
margin : auto ;
display : flex ;
display : flex ;
align - items : center ;
align - items : center ;
justify - content : center ;
justify - content : center ;