- Type Parameters:
V
-
W
-
- All Implemented Interfaces:
- java.lang.Iterable<java.util.Map.Entry<java.util.List<W>,V>>
public class NgramIterableWrapper<W,V>
extends java.lang.Object
implements java.lang.Iterable<java.util.Map.Entry<java.util.List<W>,V>>
Wraps an NgramMap as an Iterable, so it is easy to iterate over the n-grams
and associated values. Using this interface is a little inefficient due to
the boxing and temporary object allocation necessary to conform to Java's
interfaces.
- Author:
- adampauls