public function testExtractTags()
{
$case_array = array("所謂" => 1.1425214508493, "沒有" => 0.76168096723288, "是否" => 0.71841348115616, "一般" => 0.59095311682055, "肌迫" => 0.38084048361644, "雖然" => 0.38084048361644, "退縮" => 0.38084048361644, "矯作" => 0.38084048361644, "怯懦" => 0.26367154884822, "滿肚" => 0.19042024180822);
$top_k = 10;
$content = file_get_contents(dirname(dirname(__FILE__)) . "/src/dict/lyric.txt", "r");
$tags = JiebaAnalyse::extractTags($content, $top_k);
$this->assertEquals($case_array, $tags);
}