I am experiencing a strange error when calling two Ruby programs
which work fine when called alone or from different *.rb files.
In a first Ruby method, I call the summarization method
script from http://classifier.rufy.com/ (http://classifier.rufy.com/)
summarize a text (or rather,
to reduce the number of sentences in it to some ratio), and later to
the result in an RTF file, while coloring those sentences in black which
kept, and coloring those sentences that are discarded in red.
This actually works fine.
Now, in the discarding process, the red and the black sentences
generally are not neatly separated, by there is, say, one sentence in
by three sentences in red, and then two sentences in red etc.
Now, for a reader who only gets the remaining, black sentences,
words like ‘there’,‘she’,‘it’, etc. may have no meaning if the place or
person one is talking about is actually in one of the discarded
To fix this, I call a parts-of-speech tagger as an external program in
using the ‘system’ command. (A parts of speech tagger takes every
word form an English text file and decides whether it is a noun, a verb
I do this to find nouns that could be referred to as
Both scripts work on texts that are read in from files.
But when I combine them in one .rb file,
# call summary from classifier
def tag_it(language,output_file) # call external tagging program
tag_command=’/c/axelhome/lang/mytagger/bin/tag-’ + language + '.bat ’ +
- ’ ’ + output_file
color text for discarding
tag text for parts of speech
I get the following set of errors :
3 [main] ruby 3948 C:\cygwin\ur\local\bin\ruby.exe : *** fatal error:
unable to remap
C:\cygwin\usr\local\lib\ruby\1.8\i-386-cygwin\opensll.so to same address
(0x2870000) != 0x28B0000
108726 [main] ruby 280: child_copy: loaded dll child copy failed
done 0, windows pid 5468565, Win32 error 5.
These lines keep returning, with some differences in the windows pid
What is going on here? What could be done to fix it ?
Thank you very much,