Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sentiment
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
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
SOFT Core
SOFT 161 and 162
sentiment
Commits
e679aca8
Commit
e679aca8
authored
7 years ago
by
Brady James Garvin
Browse files
Options
Downloads
Patches
Plain Diff
Removed compatibility code and added menu options enum.
parent
bfb917cb
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
sentiment.py
+11
-2
11 additions, 2 deletions
sentiment.py
with
11 additions
and
2 deletions
sentiment.py
+
11
−
2
View file @
e679aca8
from
__future__
import
print_function
,
division
from
enum
import
Enum
from
builtins
import
input
class
MenuOption
(
Enum
):
SHOW_REVIEW
=
'
Show a review
'
SAVE_TOKEN_LIST
=
'
Save the token list to a file
'
SHOW_DOCUMENT_FREQUENCY
=
'
Show the document frequency for a particular token
'
SHOW_TOKEN_STATISTICS
=
'
Show all statistics for a particular token
'
SHOW_SENTENCE_STATISTICS
=
'
Show the statistics for a sentence
'
SAVE_STOP_WORD_LIST
=
'
Save the list of stop words to a file
'
SHOW_ADJUSTED_SENTENCE_STATISTICS
=
'
Show the statistics for a sentence with stop words ignored
'
EXIT
=
'
Exit the program
'
def
main
():
...
...
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