Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compendium/modules/w09-setmap-lab.tex
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ \subsection{Obligatoriska uppgifter}

Implementera metoden followFreq genom att utgå från nedan pseudokod:
\begin{Code}
val result = scala.collection.mutable.Map.empty[String, FreqMapBuilder]
val result = collection.mutable.Map.empty[String, FreqMapBuilder]
for (key, next) <- bigrams do
if /* key finns redan definierad i result */ then
/* på "platsen" result(key): lägg till next i frekvenstabellen */
Expand Down
2 changes: 1 addition & 1 deletion workspace/w09_words/FreqMapBuilder.scala
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package nlp

class FreqMapBuilder:
private val register = scala.collection.mutable.Map.empty[String, Int]
private val register = collection.mutable.Map.empty[String, Int]
def toMap: Map[String, Int] = register.toMap
def add(s: String): Unit = ???

Expand Down