Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Absinth - A Small World of Semantic Similarity
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Victor Zimmermann
Absinth - A Small World of Semantic Similarity
Commits
0ebacbd6
Commit
0ebacbd6
authored
7 years ago
by
Victor Zimmermann
Browse files
Options
Downloads
Patches
Plain Diff
removed tqdm
parent
df9d262b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
code/absinth.py
+2
-2
2 additions, 2 deletions
code/absinth.py
with
2 additions
and
2 deletions
code/absinth.py
+
2
−
2
View file @
0ebacbd6
import
os
# for reading files
from
tqdm
import
tqdm
# for counting seconds
#
from tqdm import tqdm # for counting seconds
import
spacy
# for nlp
import
networkx
as
nx
# for visualisation
import
matplotlib.pyplot
as
plt
# for visualisation
...
...
@@ -46,7 +46,7 @@ class Graph:
files
=
[
corpus_path
+
'
/
'
+
f
for
f
in
os
.
listdir
(
corpus_path
)]
# list of file paths (note that no other files should be in this directory)
spaced_word
=
word
.
replace
(
'
_
'
,
'
'
)
#input words are generally seperated with underscores
for
f
in
tqdm
(
files
[:]
)
:
#iterates over corpus
for
f
in
files
[:]:
#iterates over corpus
with
open
(
f
,
'
r
'
)
as
source
:
try
:
#some decoding throws the iteration
...
...
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