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

Language Option, Split Author Names Option, more UTF8, ... #21

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

maboberlin
Copy link

All changes done for the program 'parseRefStrings.pl'.
Language Option: Language Parameter can be passed to 'parseRefStrings.pl'. New Modul 'ConfigLang' for language data and initialization. Done for German and English.
Split author: If author names stuck together without whitespace (for example: T.W.Adorno), name will be seperated.
Keep Files: Parameter introduced so that Temp Files are kept.
Output-File: Output file bug fixed. Output file is now kept.
UTF-8: Changed encoding at several places to UTF-8.
CRF++ Data: 'prepData.pl' to produce CRF++ compatible Data from reference strings.

All changes done for the program 'parseRefStrings.pl'.
Language Option: Language Parameter can be passed to 'parseRefStrings.pl'. New Modul 'ConfigLang' for language data and initialization. Done for German and English.
Split author: If author names stuck together without whitespace (for example: T.W.Adorno), name will be seperated.
Keep Files: Parameter introduced so that Temp Files are kept.
Output-File: Output file bug fixed. Output file is now kept.
UTF-8: Changed encoding at several places to UTF-8.
CRF++ Data: 'prepData.pl' to produce CRF++ compatible Data from reference strings.
@knmnyn
Copy link
Owner

knmnyn commented Apr 22, 2016

Hi @MatzeBo thanks for the PR. We are reviewing it 🔜 . Due to our semester schedule, we have yet to have time to review your PR , but will get to it ASAP.

@maboberlin
Copy link
Author

Ok, Min! I almost finished my thesis work, so the next PR could be in pipe soon! Hope the current one is all right ...
Thank you and your team for managing this!

@kishaloyhalder
Copy link
Collaborator

Hi @MatzeBo , thanks for the PR. I have checked out the same. There are changes in 6 files in total. However seems like there are some issues with the changes in PostProcess.pm. I am not able to run basic commands like extract_all.

$ ./citeExtract.pl -m extract_all ../demodata/sample2.txt
Type of arg 1 to push must be array (not private variable) at ../lib/ParsCit/PostProcess.pm line 192, near "};"
Compilation failed in require at ../lib/ParsCit/Controller.pm line 22.
BEGIN failed--compilation aborted at ../lib/ParsCit/Controller.pm line 22.
Compilation failed in require at ./citeExtract.pl line 47.
BEGIN failed--compilation aborted at ./citeExtract.pl line 47.

I have checked with the existing master to make sure my installation etc is correct and that is working fine. I have tried hacks from this (http://www.perlmonks.org/?node_id=1098524) and have checked with different versions (5.8, 5.20) of perl without any luck. Could you please double check once and if possible confirm this PR is broken. In case I am missing something trivial let me know. Thanks again,

@knmnyn
Copy link
Owner

knmnyn commented Sep 30, 2016

@MatzeBo Have you had a chance to read @kishaloyhalder 's review of your PR on ParsCit? Thanks!

@maboberlin
Copy link
Author

maboberlin commented Oct 15, 2016

hi @knmnyn and @kishaloyhalder! Sorry that I didn't respond. I read it. I didn't check the integration of 'parseRefString.pl' into the 'ParsCit' package. I guess the problem is that I changed the number of parameters of 'parseRefStrings.pl' or / and of methods in 'PostProcess.pm'. I will fix the problem ASAP ... but at the moment I am very busy...

@maboberlin
Copy link
Author

maboberlin commented Jan 7, 2017

Hi! Sorry for the very late reply!

I think the problem occured because of perl-version issues. The command in PostProcess.pm line 192 tries to push an array into a reference of an array. This is not possible in perl versions prior to 5.14. (See here: https://www.effectiveperlprogramming.com/2010/11/use-array-references-with-the-array-operators/).

I tested to command in different perl-versions using perlbrew. It throws the described error if I use a version prior to 5.14. How did you manage the version switch, @kishaloyhalder?

To solve the problem I dereferenced the list-reference in the command, line 192. So it should work now also for lower versions. Try the latest commit. On my system everything (citeExtract.pl demo-command, etc.) works fine!

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.

4 participants