Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
voeb-tm-tw
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Janos Bekesi
voeb-tm-tw
Commits
c71f4d83
Commit
c71f4d83
authored
3 years ago
by
Janos Bekesi
Browse files
Options
Downloads
Patches
Plain Diff
still not there yet...
parent
166dfd83
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tm_utils.py
+1
-1
1 addition, 1 deletion
tm_utils.py
voeb_tm_wallnig.ipynb
+147
-158
147 additions, 158 deletions
voeb_tm_wallnig.ipynb
with
148 additions
and
159 deletions
tm_utils.py
+
1
−
1
View file @
c71f4d83
...
...
@@ -266,7 +266,7 @@ def format_topics_sentences(ldamodel=None, corpus=None, texts=None):
contents
=
pd
.
Series
(
texts
)
sent_topics_df
=
pd
.
concat
([
sent_topics_df
,
contents
],
axis
=
1
)
sent_topics_df
=
sent_topics_df
[
'
Dominant_Topic
'
].
fillna
(
0
).
apply
(
lambda
x
:
str
(
int
(
x
)))
return
sent_topics_df
return
(
sent_topics_df
)
def
convertldaGenToldaMallet
(
mallet_model
):
...
...
This diff is collapsed.
Click to expand it.
voeb_tm_wallnig.ipynb
+
147
−
158
View file @
c71f4d83
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