nlp
1.2.0
nlp
/
com.londogard.nlp.utils
/
IterableExtensions
Iterable
Extensions
public
class
IterableExtensions
Content copied to clipboard
Functions
Properties
Functions
get
Ngram
Counts
Per
Doc
Link copied to clipboard
public
final
List
<
Map
<
String
,
Integer
>
>
getNgramCountsPerDoc
(
List
<
List
<
String
>
>
$self
,
IntRange
ngramRange
)
Content copied to clipboard
identity
Count
Link copied to clipboard
public
final
Map
<
K
,
Integer
>
identityCount
<
K
extends
Any
>
(
List
<
K
>
$self
)
Content copied to clipboard
merge
Reduce
Link copied to clipboard
public
final
Map
<
K
,
V
>
mergeReduce
<
K
extends
Any
,
V
extends
Any
>
(
List
<
Map
<
K
,
V
>
>
$self
,
Function2
<
V
,
V
,
V
>
reduce
)
Content copied to clipboard
public
final
Map
<
K
,
V
>
mergeReduce
<
K
extends
Any
,
V
extends
Any
>
(
Map
<
K
,
V
>
$self
,
List
<
Map
<
K
,
V
>
>
others
,
Function2
<
V
,
V
,
V
>
reduce
)
Content copied to clipboard
merge
Reduce
In
Place
Link copied to clipboard
public
final
Unit
mergeReduceInPlace
<
K
extends
Any
,
V
extends
Any
>
(
Map
<
K
,
V
>
$self
,
List
<
Map
<
K
,
V
>
>
others
,
Function2
<
V
,
V
,
V
>
reduce
)
Content copied to clipboard
ngrams
Link copied to clipboard
public
final
List
<
String
>
ngrams
(
Array
<
String
>
$self
,
Integer
n
)
Content copied to clipboard
public
final
List
<
String
>
ngrams
(
List
<
String
>
$self
,
Integer
n
)
Content copied to clipboard
Properties
INSTANCE
Link copied to clipboard
public
final
static
IterableExtensions
INSTANCE
Content copied to clipboard