Skip to content

Commit

Permalink
bug fix thanks to Will DelHagen
Browse files Browse the repository at this point in the history
  • Loading branch information
ceteri committed Apr 5, 2013
1 parent c5c9292 commit 499a6ea
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions docs/impatient.graffle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<key>MasterSheets</key>
<array/>
<key>ModificationDate</key>
<string>2013-04-05 00:22:42 +0000</string>
<string>2013-04-05 00:48:48 +0000</string>
<key>Modifier</key>
<string>Paco NATHAN</string>
<key>NotesVisible</key>
Expand Down Expand Up @@ -11556,7 +11556,7 @@ List}</string>
{\colortbl;\red255\green255\blue255;}
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc

\f0\b\fs20 \cf0 CountBy\
\f0\b\fs20 \cf0 SumBy\
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc

\b0 \cf0 token}</string>
Expand Down Expand Up @@ -13536,7 +13536,7 @@ Collection}</string>
<key>WindowInfo</key>
<dict>
<key>CurrentSheet</key>
<integer>4</integer>
<integer>5</integer>
<key>ExpandedCanvases</key>
<array/>
<key>Frame</key>
Expand All @@ -13554,9 +13554,9 @@ Collection}</string>
<key>SidebarWidth</key>
<integer>120</integer>
<key>VisibleRegion</key>
<string>{{607, 16}, {890, 538}}</string>
<string>{{1102, 195.33333333333334}, {593.33333333333326, 358.66666666666663}}</string>
<key>Zoom</key>
<real>1</real>
<real>1.5</real>
<key>ZoomValues</key>
<array>
<array>
Expand Down Expand Up @@ -13586,8 +13586,8 @@ Collection}</string>
</array>
<array>
<string>6: tf-idf + tdd</string>
<real>1.5</real>
<real>0.0</real>
<real>1</real>
</array>
</array>
</dict>
Expand Down
Binary file modified part6/docs/plumb6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions part6/src/main/java/impatient/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@

// keep track of the word counts, which are useful for QA
Pipe wcPipe = new Pipe( "wc", tfPipe );
wcPipe = new Retain( wcPipe, tf_token );

Fields count = new Fields( "count" );
wcPipe = new CountBy( wcPipe, tf_token, count );
wcPipe = new SumBy( wcPipe, tf_token, tf_count, count, long.class );
wcPipe = new Rename( wcPipe, tf_token, token );

// additionally, sort by count
wcPipe = new GroupBy( wcPipe, count, count );
Expand Down

0 comments on commit 499a6ea

Please sign in to comment.