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

Question generation #47

Merged
merged 23 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
177e4a9
Created the question generator project
UO289845 Mar 1, 2024
dca5a1b
Created and set up the generator, with some basic examples
UO289845 Mar 2, 2024
3520d5f
Make it so there are three examples per question type
UO289845 Mar 2, 2024
c7ea8d8
Added two extra cases: size and language
UO289845 Mar 2, 2024
a6fcc52
Changed the main a bit so it¡s more concise
UO289845 Mar 2, 2024
3552a4d
Refactored code to an abstract class and also some to a common one.
UO289845 Mar 2, 2024
59bfcd1
Getting the wrong answers for population questions.
ErdemYabaci Mar 2, 2024
8dc32ff
Updated with the changes and fixed small import problem
UO289845 Mar 2, 2024
293ad7c
Improved package distribution
UO289845 Mar 2, 2024
7c0a4c3
Added a way to store already searched entites
UO289845 Mar 2, 2024
7f72711
The properties taht are also entities now are also stored to avoid se…
UO289845 Mar 2, 2024
b467de0
Modified the classes so that they pass the template and property id t…
UO289845 Mar 3, 2024
4c99d7d
Removed the sample data now that there's one question with incorrect …
UO289845 Mar 3, 2024
232e343
Added examples of wrong answers to all questions
UO289845 Mar 4, 2024
a0f4044
Updated the condition of the wrong answers
UO289845 Mar 4, 2024
1474946
Added internaztionalization support for english and spanish
UO289845 Mar 5, 2024
7bbfee8
Turned the specific generators into singletons
UO289845 Mar 5, 2024
aec3218
Fixed an issue with the path to the messages
UO289845 Mar 5, 2024
29b573e
Allowed for changing dinamically the language
UO289845 Mar 5, 2024
8420182
Removed the singleton functionality
UO289845 Mar 5, 2024
e26e32d
Improved the localization algorithm to avoid code repetition
UO289845 Mar 5, 2024
04d3a2d
Made the localization method more robust
UO289845 Mar 6, 2024
df147ea
Removed commented code
UO289845 Mar 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added examples of wrong answers to all questions
  • Loading branch information
UO289845 committed Mar 4, 2024
commit 232e34394e91acb932bd62df33d61509eb5cbe50
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ public CapitalGenerator() {
@Override
protected List<String> getWrongAnswers(String rightAnswer) {
// TODO Auto-generated method stub
return new ArrayList<String>();
List<String> result = new ArrayList<>();
result.add("a");
result.add("b");
result.add("c");
return result;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ public LanguageGenerator() {
@Override
protected List<String> getWrongAnswers(String rightAnswer) {
// TODO Auto-generated method stub
return new ArrayList<String>();
List<String> result = new ArrayList<>();
result.add("a");
result.add("b");
result.add("c");
return result;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ protected String getRightAnswer(Map<String, List<Statement>> claims) {
@Override
protected List<String> getWrongAnswers(String rightAnswer) {
// TODO Auto-generated method stub
return new ArrayList<String>();
List<String> result = new ArrayList<>();
result.add("a");
result.add("b");
result.add("c");
return result;
}

private String getRightAnswerEntity(String url) {
Expand Down