Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
softwareprojektws17
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Steffen Knapp
softwareprojektws17
Commits
bc005fbb
Commit
bc005fbb
authored
7 years ago
by
Steffen Knapp
Browse files
Options
Downloads
Patches
Plain Diff
added very simple pos tagger (postagger.py)
parent
2b6c4d1d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
__pycache__/corpus.cpython-36.pyc
+0
-0
0 additions, 0 deletions
__pycache__/corpus.cpython-36.pyc
postagger.py
+13
-0
13 additions, 0 deletions
postagger.py
with
13 additions
and
0 deletions
__pycache__/corpus.cpython-36.pyc
0 → 100644
+
0
−
0
View file @
bc005fbb
File added
This diff is collapsed.
Click to expand it.
postagger.py
0 → 100644
+
13
−
0
View file @
bc005fbb
import
nltk
from
nltk.tokenize
import
word_tokenize
from
corpus
import
read_corpus
corpus
=
read_corpus
(
"
corpus.csv
"
)
tagged_corpus
=
[]
# for debugging purposes. if you're sure it's worth it, use
# for i in range(len(corpus)):
for
i
in
range
(
9
):
tagged_corpus
.
append
(
nltk
.
pos_tag
(
word_tokenize
(
str
(
corpus
[
i
][
'
REVIEW
'
]))))
print
(
tagged_corpus
)
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