コード例 #1
0
ファイル: frozencounter.go プロジェクト: hellcoderz/go-nlp
// Convert a counter.Counter into a frozen counter, returning the new
// frozen counter and the index required to convert it back.
func Freeze(c *counter.Counter) *Counter {
	ks := NewKeySet(c.Keys(), c.Base)

	return FreezeWithKeySet(c, ks)
}