Skip to content
This repository was archived by the owner on Feb 19, 2020. It is now read-only.

Commit 1ba5a2b

Browse files
author
Giulio De Luise
committed
Shorten long line.
1 parent 801d801 commit 1ba5a2b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/scala/epic/lexicon/SimpleLexicon.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ class SimpleLexicon[L, W](
2525
) extends Lexicon[L, W] with Serializable {
2626
private val wordCounts: Counter[W, Double] = sum(wordTagCounts, Axis._0)
2727
private val labelCounts: Counter[L, Double] = sum(wordTagCounts, Axis._1)
28-
private val byWord: Map[W, Set[Int]] = Map.empty[W, Set[Int]] ++ wordTagCounts.keySet.groupBy(_._2).mapValues(_.map(pair => labelIndex(pair._1)).toSet)
28+
private val byWord: Map[W, Set[Int]] = Map.empty[W, Set[Int]] ++
29+
wordTagCounts.keySet.groupBy(_._2).mapValues(_.map(pair => labelIndex(pair._1)).toSet)
2930

3031
private val openTags: Set[Int] = Option(
3132
labelCounts.keysIterator.collect { case l if wordTagCounts(l, ::).size > openTagThreshold => labelIndex(l) }.toSet

0 commit comments

Comments
 (0)