Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2020_21 J-25
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2020_21 J-25
2020_21 J-25
Commits
9b8b3402
Commit
9b8b3402
authored
Jul 09, 2021
by
Jeyasumangala Rasanayagam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Source file added
parent
32fd4d32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
IT17160162/model-analyze.py
IT17160162/model-analyze.py
+37
-0
No files found.
IT17160162/model-analyze.py
0 → 100644
View file @
9b8b3402
import
concurrent.futures
import
json
import
os
import
time
from
datetime
import
datetime
from
printer
import
Printer
from
nltk.tokenize
import
word_tokenize
from
gensim.models
import
Word2Vec
basePath
=
"E:/FINAL SEMESTER/Research/FINAL/PROJECT"
modelPath
=
basePath
+
"model/w2v-model-V_300-MC_1-W_8-E_25.model"
def
doWorker
():
model
=
Word2Vec
.
load
(
modelPath
)
# print(model.wv['java'])
# print(model.similarity('software_engineer', 'java'))
# print(model.similarity('software_engineer', 'experience'))
# print("software_engineer", model.most_similar('software_engineer')[:10])
# print("engineer : " , model.most_similar('engineer')[:10])
print
(
"developer : "
,
model
.
most_similar
(
'developer'
)[:
10
])
print
(
"skill : "
,
model
.
most_similar
(
'skill'
)[:
10
])
print
(
"experince : "
,
model
.
most_similar
(
'experince'
)[:
10
])
fileUniqueId
=
str
(
int
(
time
.
time
()))
startTime
=
datetime
.
now
()
print
(
"Embedding Analyze started"
)
doWorker
()
print
(
"Finished"
)
endTime
=
datetime
.
now
()
print
(
"
\n
Duration : "
,
endTime
-
startTime
)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment