jinnks / Dictionary-Cambridge

Perl API for cambridge dictionaries
0 stars 0 forks source link

Is this being actively developed? Install fails #1

Open DavidAyliffe opened 7 years ago

DavidAyliffe commented 7 years ago

I'd love a method which gets the 'level' of a word.

Also on my macbook I can't even install this

CPAN: Storable loaded ok (v2.41) Reading '/Users/ydo/.cpan/Metadata' Database was generated on Sat, 15 Jul 2017 00:17:02 GMT CPAN: LWP::UserAgent loaded ok (v6.05) CPAN: Time::HiRes loaded ok (v1.9725) Fetching with LWP: http://mirror.bibleonline.ru/cpan/authors/01mailrc.txt.gz Reading '/Users/ydo/.cpan/sources/authors/01mailrc.txt.gz' CPAN: Compress::Zlib loaded ok (v2.06) ............................................................................DONE Fetching with LWP: http://mirror.bibleonline.ru/cpan/modules/02packages.details.txt.gz Reading '/Users/ydo/.cpan/sources/modules/02packages.details.txt.gz' Database was generated on Wed, 19 Jul 2017 02:53:57 GMT ............. New CPAN.pm version (v2.16) available. [Currently running version is v2.00] You might want to try install CPAN reload cpan to both upgrade CPAN.pm and run the new version without leaving the current session.

...............................................................DONE Fetching with LWP: http://mirror.bibleonline.ru/cpan/modules/03modlist.data.gz Reading '/Users/ydo/.cpan/sources/modules/03modlist.data.gz' DONE Writing /Users/ydo/.cpan/Metadata Running install for module 'Dictionary::Cambridge' Running make for J/JI/JINNKS/Dictionary-Cambridge-0.02.tar.gz CPAN: Digest::SHA loaded ok (v5.84_01) Checksum for /Users/ydo/.cpan/sources/authors/id/J/JI/JINNKS/Dictionary-Cambridge-0.02.tar.gz ok CPAN: File::Temp loaded ok (v0.23) CPAN: Parse::CPAN::Meta loaded ok (v2.150010) CPAN: CPAN::Meta loaded ok (v2.150010) CPAN: Module::CoreList loaded ok (v3.03) CPAN: Module::Build loaded ok (v0.4224)

CPAN.pm: Building J/JI/JINNKS/Dictionary-Cambridge-0.02.tar.gz

Created MYMETA.yml and MYMETA.json Creating new 'Build' script for 'Dictionary-Cambridge' version '0.02' Building Dictionary-Cambridge JINNKS/Dictionary-Cambridge-0.02.tar.gz ./Build -- OK 'YAML' not installed, will not store persistent state Running Build test t/00-compile.t ...... 1/2

Failed test 'Dictionary/Cambridge.pm loaded ok'

at t/00-compile.t line 38.

got: '65280'

expected: '0'

Invalid version format (version required) at /Library/Perl/5.18/Module/Runtime.pm line 386. BEGIN failed--compilation aborted at /Users/ydo/.cpan/build/Dictionary-Cambridge-0.02-cAg4BL/blib/lib/Dictionary/Cambridge.pm line 6. Compilation failed in require at -e line 1.

Looks like you failed 1 test of 2.

t/00-compile.t ...... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/2 subtests t/002-wordsearch.t .. 1/6

Failed test 'use Dictionary::Cambridge;'

at t/002-wordsearch.t line 11.

Tried to use 'Dictionary::Cambridge'.

Error: Invalid version format (version required) at /Library/Perl/5.18/Module/Runtime.pm line 386.

BEGIN failed--compilation aborted at lib/Dictionary/Cambridge.pm line 6.

Compilation failed in require at (eval 4) line 2.

BEGIN failed--compilation aborted at (eval 4) line 2.

Looks like you failed 1 test of 6.

t/002-wordsearch.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/6 subtests (less 5 skipped subtests: 0 okay)

Test Summary Report

t/00-compile.t (Wstat: 256 Tests: 2 Failed: 1) Failed test: 1 Non-zero exit status: 1 t/002-wordsearch.t (Wstat: 256 Tests: 6 Failed: 1) Failed test: 1 Non-zero exit status: 1 Files=2, Tests=8, 1 wallclock secs ( 0.03 usr 0.01 sys + 0.72 cusr 0.13 csys = 0.89 CPU) Result: FAIL Failed 2/2 test programs. 2/8 subtests failed. JINNKS/Dictionary-Cambridge-0.02.tar.gz ./Build test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports JINNKS/Dictionary-Cambridge-0.02.tar.gz Running Build install make test had returned bad status, won't install without force

jinnks commented 7 years ago

Hi David, This is not being actively developed by me. But i will be more than happy for you or me to bring this up to date. I had contacted Cambridge university press to give me a access key which was valid for a year. You might need to get one from them as mine is expired.

Kind Regards, Farhan

On 19 Jul 2017 8:38 pm, "DavidAyliffe" notifications@github.com wrote:

I'd love a method which gets the 'level' of a word.

Also on my macbook I can't even install this

CPAN: Storable loaded ok (v2.41) Reading '/Users/ydo/.cpan/Metadata' Database was generated on Sat, 15 Jul 2017 00:17:02 GMT CPAN: LWP::UserAgent loaded ok (v6.05) CPAN: Time::HiRes loaded ok (v1.9725) Fetching with LWP: http://mirror.bibleonline.ru/cpan/authors/01mailrc.txt.gz Reading '/Users/ydo/.cpan/sources/authors/01mailrc.txt.gz' CPAN: Compress::Zlib loaded ok (v2.06) ............................................................ ................DONE Fetching with LWP: http://mirror.bibleonline.ru/cpan/modules/02packages.details.txt.gz Reading '/Users/ydo/.cpan/sources/modules/02packages.details.txt.gz' Database was generated on Wed, 19 Jul 2017 02:53:57 GMT ............. New CPAN.pm version (v2.16) available. [Currently running version is v2.00] You might want to try install CPAN reload cpan to both upgrade CPAN.pm and run the new version without leaving the current session.

...............................................................DONE Fetching with LWP: http://mirror.bibleonline.ru/cpan/modules/03modlist.data.gz Reading '/Users/ydo/.cpan/sources/modules/03modlist.data.gz' DONE Writing /Users/ydo/.cpan/Metadata Running install for module 'Dictionary::Cambridge' Running make for J/JI/JINNKS/Dictionary-Cambridge-0.02.tar.gz CPAN: Digest::SHA loaded ok (v5.84_01) Checksum for /Users/ydo/.cpan/sources/authors/id/J/JI/JINNKS/ Dictionary-Cambridge-0.02.tar.gz ok CPAN: File::Temp loaded ok (v0.23) CPAN: Parse::CPAN::Meta loaded ok (v2.150010) CPAN: CPAN::Meta loaded ok (v2.150010) CPAN: Module::CoreList loaded ok (v3.03) CPAN: Module::Build loaded ok (v0.4224)

CPAN.pm: Building J/JI/JINNKS/Dictionary-Cambridge-0.02.tar.gz

Created MYMETA.yml and MYMETA.json Creating new 'Build' script for 'Dictionary-Cambridge' version '0.02' Building Dictionary-Cambridge JINNKS/Dictionary-Cambridge-0.02.tar.gz ./Build -- OK 'YAML' not installed, will not store persistent state Running Build test t/00-compile.t ...... 1/2 Failed test 'Dictionary/Cambridge.pm loaded ok' at t/00-compile.t line 38. got: '65280' expected: '0'

Invalid version format (version required) at /Library/Perl/5.18/Module/Runtime.pm line 386. BEGIN failed--compilation aborted at /Users/ydo/.cpan/build/ Dictionary-Cambridge-0.02-cAg4BL/blib/lib/Dictionary/Cambridge.pm line 6. Compilation failed in require at -e line 1. Looks like you failed 1 test of 2.

t/00-compile.t ...... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/2 subtests t/002-wordsearch.t .. 1/6 Failed test 'use Dictionary::Cambridge;' at t/002-wordsearch.t line 11. Tried to use 'Dictionary::Cambridge'. Error: Invalid version format (version required) at /Library/Perl/5.18/Module/Runtime.pm line 386. BEGIN failed--compilation aborted at lib/Dictionary/Cambridge.pm line 6. Compilation failed in require at (eval 4) line 2. BEGIN failed--compilation aborted at (eval 4) line 2. Looks like you failed 1 test of 6.

t/002-wordsearch.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/6 subtests (less 5 skipped subtests: 0 okay) Test Summary Report

t/00-compile.t (Wstat: 256 Tests: 2 Failed: 1) Failed test: 1 Non-zero exit status: 1 t/002-wordsearch.t (Wstat: 256 Tests: 6 Failed: 1) Failed test: 1 Non-zero exit status: 1 Files=2, Tests=8, 1 wallclock secs ( 0.03 usr 0.01 sys + 0.72 cusr 0.13 csys = 0.89 CPU) Result: FAIL Failed 2/2 test programs. 2/8 subtests failed. JINNKS/Dictionary-Cambridge-0.02.tar.gz ./Build test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports JINNKS/Dictionary-Cambridge-0.02.tar.gz Running Build install make test had returned bad status, won't install without force

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jinnks/Dictionary-Cambridge/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AGLm1BtFd_tIenWozHGaP65F8gfRj7F1ks5sPlszgaJpZM4OdMvQ .

jinnks commented 7 years ago

Hi David,

I am in the process of updating this module and adding a method to return the level information, the level info depends upon the context of how the word is being used. The method would return level info as {definition => $def, examples => [{lvl => "Example usage"},{lvl => "Example usage"}...] }

would the above be something useful? Thanks Farhan

DavidAyliffe commented 7 years ago

Hello Farhan

Yes, a method like this would be very useful. GetLevel( $word )

Would it be possible to add an overloaded method like this: GetLevel( $word, $pos )

"head" as a noun is at least A1 and at most B1. whereas.... to "head" as a verb is at least B2

Maybe the $pos could work with the tags provided here: http://cpansearch.perl.org/src/ACOBURN/Lingua-EN-Tagger-0.23/README

Thank you

On 21 July 2017 at 01:12, jinnks notifications@github.com wrote:

Hi David,

I am in the process of updating this module and adding a method to return the level information, the level info depends upon the context of how the word is being used. The method would return level info as {definition => $def, examples => [{lvl => "Example usage"},{lvl => "Example usage"}...] }

would the above be something useful? Thanks Farhan

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jinnks/Dictionary-Cambridge/issues/1#issuecomment-316844904, or mute the thread https://github.com/notifications/unsubscribe-auth/AbQ77D4_IRelunnqpAWdM_dbOMWWQW1Mks5sP9DZgaJpZM4OdMvQ .

DavidAyliffe commented 7 years ago

hi.

any news on when/if this feature will be available soon?

jinnks commented 7 years ago

I have asked for a new api key from Cambridge university press, once i have that i will be able to continue development further. I will keep you posted of the outcome of the request. Although at some point over the coming weekend, i will try to look at the install issue you are facing. But i cannot make any promises due to othee priorities.

Kind Regards Farhan

On 26 Jul 2017 7:39 pm, "DavidAyliffe" notifications@github.com wrote:

hi.

any news on when/if this feature will be available soon?

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/jinnks/Dictionary-Cambridge/issues/1#issuecomment-318144532, or mute the thread https://github.com/notifications/unsubscribe-auth/AGLm1HYfQwpatH7iPc175aXrv3BZHls0ks5sR4fTgaJpZM4OdMvQ .

DavidAyliffe commented 7 years ago

No worries. Thanks a bunch.

Please don't worry about my install issues, I can try to fix those myself, more important is the added functionality.

Do you think it'll be possible to get the level for a certain class of word? I.e. "head" as a noun vs. "to head" as a verb... Is it possible to have some overlap with the part of speech tags used in the Lingua::EN::Tagger library?

[image: photo] Mr David Ayliffe EAP Workflow Coordinator & Instructor @ Abdullah Gul University +90 538 5417919 <+90+538+5417919> | david@ayliffe.com | www.ayliffe.com http://www.facebook.com/david.ayliffe http://www.linkedin.com/in/david-ayliffe-163755112/

On 26 July 2017 at 22:17, jinnks notifications@github.com wrote:

I have asked for a new api key from Cambridge university press, once i have that i will be able to continue development further. I will keep you posted of the outcome of the request. Although at some point over the coming weekend, i will try to look at the install issue you are facing. But i cannot make any promises due to othee priorities.

Kind Regards Farhan

On 26 Jul 2017 7:39 pm, "DavidAyliffe" notifications@github.com wrote:

hi.

any news on when/if this feature will be available soon?

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/jinnks/Dictionary-Cambridge/issues/1# issuecomment-318144532, or mute the thread https://github.com/notifications/unsubscribe-auth/ AGLm1HYfQwpatH7iPc175aXrv3BZHls0ks5sR4fTgaJpZM4OdMvQ .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jinnks/Dictionary-Cambridge/issues/1#issuecomment-318154718, or mute the thread https://github.com/notifications/unsubscribe-auth/AbQ77KHzDPqQFQ94RDsT0ZFn1Gs90r45ks5sR5DZgaJpZM4OdMvQ .

jinnks commented 7 years ago

I think it should be possible, if you look at the example.resp file https://github.com/jinnks/Dictionary-Cambridge/blob/master/example.resp . It shows the example response which comes back for a word sent to the API. We should be able to design something which can give us data based on the class of the word. It will require some proper algorithm to collect the data from the xml. But as long as we have this data we should be able to collect it from the xml as we need i suppose.

Kind Regards Farhan

On 26 Jul 2017 8:33 pm, "DavidAyliffe" notifications@github.com wrote:

No worries. Thanks a bunch.

Please don't worry about my install issues, I can try to fix those myself, more important is the added functionality.

Do you think it'll be possible to get the level for a certain class of word? I.e. "head" as a noun vs. "to head" as a verb... Is it possible to have some overlap with the part of speech tags used in the Lingua::EN::Tagger library?

[image: photo] Mr David Ayliffe EAP Workflow Coordinator & Instructor @ Abdullah Gul University +90 538 5417919 <+90%20538%20541%2079%2019> <+90+538+5417919> | david@ayliffe.com | www.ayliffe.com http://www.facebook.com/david.ayliffe http://www.linkedin.com/in/david-ayliffe-163755112/

On 26 July 2017 at 22:17, jinnks notifications@github.com wrote:

I have asked for a new api key from Cambridge university press, once i have that i will be able to continue development further. I will keep you posted of the outcome of the request. Although at some point over the coming weekend, i will try to look at the install issue you are facing. But i cannot make any promises due to othee priorities.

Kind Regards Farhan

On 26 Jul 2017 7:39 pm, "DavidAyliffe" notifications@github.com wrote:

hi.

any news on when/if this feature will be available soon?

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/jinnks/Dictionary-Cambridge/issues/1# issuecomment-318144532, or mute the thread https://github.com/notifications/unsubscribe-auth/ AGLm1HYfQwpatH7iPc175aXrv3BZHls0ks5sR4fTgaJpZM4OdMvQ .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jinnks/Dictionary-Cambridge/issues/1#iss uecomment-318154718, or mute the thread https://github.com/notifications/unsubscribe-auth/AbQ77KHzD PqQFQ94RDsT0ZFn1Gs90r45ks5sR5DZgaJpZM4OdMvQ .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jinnks/Dictionary-Cambridge/issues/1#issuecomment-318158517, or mute the thread https://github.com/notifications/unsubscribe-auth/AGLm1MxezMSdgM-o7OmMFseWLAiLKof9ks5sR5R_gaJpZM4OdMvQ .

DavidAyliffe commented 7 years ago

Any news on this? Will an update be available soon?

DavidAyliffe commented 7 years ago

Is this being developed? I would like to use this with my script....?

[image: photo] Mr David Ayliffe EAP Workflow Coordinator & Instructor @ Abdullah Gul University +90 538 5417919 <+90+538+5417919> | david@ayliffe.com | www.ayliffe.com http://www.facebook.com/david.ayliffe http://www.linkedin.com/in/david-ayliffe-163755112/

On 26 July 2017 at 23:00, jinnks notifications@github.com wrote:

I think it should be possible, if you look at the example.resp file https://github.com/jinnks/Dictionary-Cambridge/blob/master/example.resp . It shows the example response which comes back for a word sent to the API. We should be able to design something which can give us data based on the class of the word. It will require some proper algorithm to collect the data from the xml. But as long as we have this data we should be able to collect it from the xml as we need i suppose.

Kind Regards Farhan

On 26 Jul 2017 8:33 pm, "DavidAyliffe" notifications@github.com wrote:

No worries. Thanks a bunch.

Please don't worry about my install issues, I can try to fix those myself, more important is the added functionality.

Do you think it'll be possible to get the level for a certain class of word? I.e. "head" as a noun vs. "to head" as a verb... Is it possible to have some overlap with the part of speech tags used in the Lingua::EN::Tagger library?

[image: photo] Mr David Ayliffe EAP Workflow Coordinator & Instructor @ Abdullah Gul University +90 538 5417919 <0538%20541%2079%2019> <+90%20538%20541%2079%2019> <+90+538+5417919> | david@ayliffe.com | www.ayliffe.com http://www.facebook.com/david.ayliffe http://www.linkedin.com/in/david-ayliffe-163755112/

On 26 July 2017 at 22:17, jinnks notifications@github.com wrote:

I have asked for a new api key from Cambridge university press, once i have that i will be able to continue development further. I will keep you posted of the outcome of the request. Although at some point over the coming weekend, i will try to look at the install issue you are facing. But i cannot make any promises due to othee priorities.

Kind Regards Farhan

On 26 Jul 2017 7:39 pm, "DavidAyliffe" notifications@github.com wrote:

hi.

any news on when/if this feature will be available soon?

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/jinnks/Dictionary-Cambridge/issues/1# issuecomment-318144532, or mute the thread https://github.com/notifications/unsubscribe-auth/ AGLm1HYfQwpatH7iPc175aXrv3BZHls0ks5sR4fTgaJpZM4OdMvQ .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jinnks/Dictionary-Cambridge/issues/1#iss uecomment-318154718, or mute the thread https://github.com/notifications/unsubscribe-auth/AbQ77KHzD PqQFQ94RDsT0ZFn1Gs90r45ks5sR5DZgaJpZM4OdMvQ .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jinnks/Dictionary-Cambridge/issues/1# issuecomment-318158517, or mute the thread https://github.com/notifications/unsubscribe-auth/AGLm1MxezMSdgM- o7OmMFseWLAiLKof9ks5sR5R_gaJpZM4OdMvQ

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jinnks/Dictionary-Cambridge/issues/1#issuecomment-318165466, or mute the thread https://github.com/notifications/unsubscribe-auth/AbQ77Pz0BDbCEjPFi1yOCW5yPz7TMSWBks5sR5rXgaJpZM4OdMvQ .