Skip to content
Why GitHub?
Features
→
Code review
Project management
Integrations
Actions
Packages
Security
Team management
Hosting
Customer stories
→
Security
→
Enterprise
Explore
Explore GitHub
→
Learn & contribute
Topics
Collections
Trending
Learning Lab
Open source guides
Connect with others
Events
Community forum
GitHub Education
Marketplace
Pricing
Plans
→
Compare plans
Contact Sales
Nonprofit
→
Education
→
In this repository
All GitHub
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub
↵
Jump to
↵
In this repository
All GitHub
↵
Jump to
↵
Sign in
Sign up
Watch
26
Star
475
Fork
110
boudinfl
/
pke
Code
Issues
1
Pull requests
2
Projects
0
Security
Insights
Permalink
Browse files
Loading status checks…
Update utils.py
Loading branch information
boudinfl
committed
Nov 28, 2019
1 parent
03c9028
commit
943899a2fb1fe509d52883e8ca4b2edadd29fe6b
Unified
Split
Showing
1 changed file
with
1 addition
and
1 deletion
.
+1
−1
pke/utils.py
2
pke/utils.py
Show comments
View file
Edit file
Delete file
@@ -199,7 +199,7 @@ def train_supervised_model(input_dir,
logging.info(
'
reading file
{}
'
.format(input_file))
#
get the document id from file name
doc_id
=
'
.
'
.join(
input_file.split(
'
/
'
)[
-
1
]
.split(
'
.
'
)[
0
:
-
1
])
doc_id
=
'
.
'
.join(
os.path.basename(input_file)
.split(
'
.
'
)[
0
:
-
1
])
#
initialize the input file
model.
__init__
()
Toggle all file notes
0 comments on commit
943899a
Please
sign in
to comment.
You can’t perform that action at this time.
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
0 comments on commit
943899a