install.packages('quanteda')
weight, x
with no type
argument queries the weighting applied to the dfm, returning
setMethod("weight", signature(c("dfm", "MISSING")), function(x) {
if (isS4(x))
x@weighting
else
attr(x, "weighting")
})