Java edu.stanford.nlp.stats Counters fields, constructors, methods, implement or subclass

Example usage for Java edu.stanford.nlp.stats Counters fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for edu.stanford.nlp.stats Counters.

The text is from its open source code.

Method

voidaddInPlace(Counter target, Counter arg)
Sets each value of target to be target[k]+arg[k] for all keys k in arg.
voidaddInPlace(TwoDimensionalCounter target, TwoDimensionalCounter arg)
For all keys (u,v) in arg, sets target[u,v] to be target[u,v] + arg[u,v].
voidaddInPlace(TwoDimensionalCounter target, double value)
For all keys (u,v) in target, sets target[u,v] to be target[u,v] + value
voidaddInPlace(Counter target, Collection arg)
Sets each value of target to be target[k]+ num-of-times-it-occurs-in-collection if the key is present in the arg collection.
voidaddInPlace(Counter target, double value)
Increments all keys in a Counter by a specific value.
CountermultiplyInPlace(Counter target, double multiplier)
Multiplies each value in target by the given multiplier, in place.
CountermultiplyInPlace(Counter target, Counter mult)
Multiplies each value in target by the count of the key in mult, in place.
ListtoSortedList(Counter c, boolean ascending)
A List of the keys in c, sorted from highest count to lowest.
StringtoString(Counter counter, int maxKeysToPrint)
Returns a string representation which includes no more than the maxKeysToPrint elements with largest counts.
StringtoString(Counter counter, NumberFormat nf)