update pattern scoring function
Merge pull request #1 from AcademiaSinicaNLPLab/patch-1

update pattern scoring function