Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter out irrelevant categories #1029

Closed
nicolas-raoul opened this issue Dec 28, 2017 · 17 comments
Closed

Filter out irrelevant categories #1029

nicolas-raoul opened this issue Dec 28, 2017 · 17 comments

Comments

@nicolas-raoul
Copy link
Member

nicolas-raoul commented Dec 28, 2017

screenshot_20171125-235725
This was an experiment that has been abandoned, but the 300 categories remain: https://commons.wikimedia.org/wiki/Commons:Image_classification_system

Tip for newcomers: achalshant@3681176

@nicolas-raoul
Copy link
Member Author

We can skip all "in the XXXXs" categories except 2000s and 2010s, as people should not use the app to upload very old pictures.
screenshot_20171205-154359

@janani-sridhar
Copy link

Hi, I'll start working on this issue!

@janani-sridhar
Copy link

Hi there,

I have forked achalshant's branch and added my code here: https://github.com/janani-sridhar/apps-android-commons/blob/master/app/src/main/java/fr/free/nrw/commons/category/PrefixUpdater.java

I'm not sure how to create a pull request for this fix, considering that I was working off of achalshant's branch. Hope to hear some feedback and advice soon!

@nicolas-raoul
Copy link
Member Author

nicolas-raoul commented Jan 6, 2018 via email

@junkiattan
Copy link
Contributor

@nicolas-raoul

This issue seems to be open! can I take this up?

@misaochan
Copy link
Member

@janani-sridhar Could you please let you know if you are still working on this? We would like to give the issue to @junkiattan if you aren't. :) Thanks!

@junkiattan
Copy link
Contributor

@misaochan @nicolas-raoul
Can I take this issue? Ill try to submit a PR soon!

@nicolas-raoul
Copy link
Member Author

nicolas-raoul commented Feb 12, 2018

@junkiattan OK!

neslihanturan added a commit that referenced this issue Feb 15, 2018
Filter out irrelevant categories (to filter out before 2000s when year is in format XXXX) #1029
@neslihanturan
Copy link
Collaborator

@junkiattan handled some parts of this issue recently, however it requires more effort. So, I wont close this now.

@neslihanturan
Copy link
Collaborator

Currently we filtered out before 2000s as it has written as XXXX format. But can we describe what do we exactly want to filter out?

@junkiattan
Copy link
Contributor

@neslihanturan @nicolas-raoul

I can further extend the part of the code I touched to exclude the YY.MM.DD formats that do not pass a certain year. However the years are expressed in 2 digits, hence it is a little tricky to set a cut off year (e.g. should 99 now be defined as old?)

@misaochan
Copy link
Member

I would personally consider 99 to be "old" in the context of smartphones. But indeed the 2 digit years are a problem. I guess we could go with allowing '1x' and '0x' through and filter out the others?

@junkiattan
Copy link
Contributor

@misaochan
That can be done! Actually I was thinking of including 2x too, since 201x is coming to an end. What do you think?

@misaochan
Copy link
Member

@junkiattan We've got a good 2 years before that happens, so IMO not necessary, we can make that change when it happens. ;)

@nicolas-raoul
Copy link
Member Author

nicolas-raoul commented Feb 15, 2018

@junkiattan Please do not filter based on the "YY.MM.DD" format. I guess you got confused because of my "Image class" screenshot, which is unrelated. I should probably have created separate issues.

Only filter out categories that end with the string " in the XYZ0s" (XYZ being an integer between 1 and 200).
Thanks!

@junkiattan
Copy link
Contributor

@nicolas-raoul

I have already done this in my first PR for this issue. Can this be closed now then? If so then I will close my second PR

@neslihanturan
Copy link
Collaborator

Yes @junkiattan maybe you can close your second PR and I can close the issue. Thanks for quick responses.

sivaraam added a commit to sivaraam/apps-android-commons that referenced this issue Mar 19, 2022
We are in the 2020s now. So, adjust fix for issue 1029 to include
2020s too.
sivaraam added a commit to sivaraam/apps-android-commons that referenced this issue May 15, 2022
We are in the 2020s now. So, adjust fix for issue 1029 to include
2020s too.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants