Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
repos
research
Article Quality
Commits
11ba8bb2
Commit
11ba8bb2
authored
Sep 13, 2022
by
Bmansurov
Browse files
Set languages to 'all' when no project is supplied
parent
cf907e3f
Pipeline
#6093
passed with stages
in 5 minutes and 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
article_quality/app.py
View file @
11ba8bb2
...
...
@@ -68,7 +68,8 @@ def _generate_data(spark, mediawiki_snapshot, wikidata_snapshot,
wikitext_table
=
'wmf.mediawiki_wikitext_history'
item_page_link_table
=
'wmf.wikidata_item_page_link'
languages
=
'_'
.
join
([
x
.
rstrip
(
'wiki'
)
for
x
in
projects
])
languages
=
'_'
.
join
([
x
.
rstrip
(
'wiki'
)
for
x
in
projects
])
\
if
projects
else
'all'
features_table
=
f
'
{
start_date
.
strftime
(
"%Y%m%d"
)
}
_
{
end_date
.
strftime
(
"%Y%m%d"
)
}
_
{
languages
}
_features'
features_file
=
f
'
{
save_directory
}
/
{
features_table
}
.parquet'
if
save_directory
else
None
scores_table
=
f
'
{
start_date
.
strftime
(
"%Y%m%d"
)
}
_
{
end_date
.
strftime
(
"%Y%m%d"
)
}
_
{
languages
}
_scores'
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment