Word Normalization and Stemming

Well, today I learned the word normalization and stemming. 

After word tokenization, we should stem to map them to a normal form. For examples, u should refer "are is " to "be", and refer "windows" to "window" and so on. Afterwards, we can use Linux tool to implement.

Firstly, u know, divede every word into one line and display.

 

translate the captial to lowercase

 

grep, which is global search regular expression and print out the line, allow u to use regular expression.

then, u should sort before use uniq by count, afterwards, u can sort by num by default increasing, if u don't use '-r'.

note, u can use 'G' to go to end, and use 'g' to go to the begin.

 

u konw some words which is end with ing are no need to find out, so we can modify the regular expression.

well, the result is better even thought there are still some words included. there are a long road for me.

 

In conclusion, we should segmentation words then we normalize those words.

 

 

 

转载于:https://www.cnblogs.com/chuanlong/archive/2013/04/01/2992785.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值