Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BigDataProcessAssignment2
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Meiqi Guo
BigDataProcessAssignment2
Commits
6bb4cfa9
Commit
6bb4cfa9
authored
8 years ago
by
Meiqi Guo
Browse files
Options
Downloads
Patches
Plain Diff
Update README.md
parent
d9f27a33
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+10
-2
10 additions, 2 deletions
README.md
with
10 additions
and
2 deletions
README.md
+
10
−
2
View file @
6bb4cfa9
...
...
@@ -22,7 +22,7 @@ else if (stopWords.contains(word)){
word.set(token.replaceAll("[^A-Za-z0-9]+", "").toLowerCase())
```
**
k
eep each unique word only once per line**
**
K
eep each unique word only once per line**
We define a
*hashset*
where we store words
...
...
@@ -53,8 +53,16 @@ I used two counters:
*
the other one is to record the number of lines for the output, named
*FinalLineNumCounter*
, which means the number after removing all empty lines.
The result is shown as below:
NUM = 124787
Final_NUM = 114815
So nearly 10000 lines are empty.

<img
src=
"https://gitlab.my.ecp.fr/2014guom/BigDataProcessAssignment2/blob/master/output/counters.PNG"
width=
"100px"
height=
"80px"
alt=
"简书"
>
**Order the tokens of each line in ascending order of global frequency**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment