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

update stopword.php #1

Merged
merged 7 commits into from
Feb 7, 2023
Merged

Conversation

hafriz
Copy link
Contributor

@hafriz hafriz commented Jan 31, 2023

Warning: include(../stemmer/stemmer.php): failed to open stream: No such file or directory

Warning: include(../stemmer/stemmer.php): failed to open stream: No such file or directory
@thoriqadillah
Copy link
Owner

Is the original include('./../stemmer.php'); in stemmer/en/en.php and include('../stemmer/stemmer.php'); in stopword/stopword.php throwing error?
Is the include('./../stemmer.php'); in stemmer/id/id.php throwing error too?

@hafriz
Copy link
Contributor Author

hafriz commented Jan 31, 2023 via email

@thoriqadillah
Copy link
Owner

4.1 should be fine. This plugin developed on v4.0
It's pretty weird because i have no problem with the include. I even try it without using include whatsoever and the stopword and stemmer is still working.
What OS are you using? I'm using linux

Can you try on your machine to change the include both on stopword and stemmer with the following code?

global $CFG;
require_once($CFG->dirroot.'/question/type/essaysimilarity/nlp/preprocessing/stemmer/stemmer.php');

If that's working, I might change the include to require_once with absolute path instead of relative path

@hafriz
Copy link
Contributor Author

hafriz commented Feb 1, 2023 via email

@thoriqadillah
Copy link
Owner

Can you give me the steps to reproduce the error?

@hafriz
Copy link
Contributor Author

hafriz commented Feb 1, 2023 via email

@thoriqadillah
Copy link
Owner

Woops, a typo for sure. I thought it was $response['format'] instead of $response['answerformat']. Yep, thanks. Don't forget to remove the comment from the code
Can you update the include in the stemmer for id.php like before as well, please? I will test it later. Thanks

Copy link
Owner

@thoriqadillah thoriqadillah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thoriqadillah thoriqadillah merged commit 64ae74e into thoriqadillah:main Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants