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

Odd behavior when loading custom dict file #8

Open
tbruce opened this issue Aug 9, 2014 · 0 comments
Open

Odd behavior when loading custom dict file #8

tbruce opened this issue Aug 9, 2014 · 0 comments

Comments

@tbruce
Copy link

tbruce commented Aug 9, 2014

Sean:
First, thanks for your work on this. It's a lifesaver. But of course no good deed goes unpunished.

I'm having trouble opening a custom dictionary file. The context is maybe unusual -- I'm in the middle of a block that opens a persistent httpd connection, like this (highly simplified):
httpcon = Net::HTTP.new(server_uri.host, server_uri.port)

fetch many files and summarize them

httpcon.start do |http|

...
## fetch a file
contents, topics = filecontents.summarize( :topics => true, :dictionary => '/some/random/dicfile')
...
end

I get something in the depths of http.rb complaining that it can't open the file, apparently thinking that it should be doing so over the http connection rather than reading it off local disk.

Any ideas? For now, I'm mangling the local (gem) copy of en.xml, but that's not good ;).

t

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

No branches or pull requests

1 participant