[ngrams] refactor opaque Int into TermsWeight newtype

parent a81ea049
Pipeline #7176 passed with stages
in 47 minutes and 37 seconds