Open kshahkshah opened 11 years ago
Try document { id: "6h6h93jsrit53" }
Sent from my iPhone
On 2013-05-15, at 6:33 PM, Kunal Shah notifications@github.com wrote:
I'm back at it and would like to contribute to the documentation again.
I've used the chunker (html) and segmenter (stanford) to break down an HTML document into sentences. I am storing the parsed document now in Mongo using the serialized, but I can't seem to figure out the API for retrieving one and the same.
This is more of a users group question, which I'd be happy to post on, but I would like to add the docs myself when I figure this out.
— Reply to this email directly or view it on GitHub.
I think part of my struggle is that I'm using "section" since I can't seem to create a "document" from a String, only from a file. That is, calling Treat::Entities::Document.build("string") returns an error.
I'm going through the logic here in buildable.rb and it seems like you should be able to throw anything at the build method and have it come out correctly, so I'm guessing I'm seeing a bug?
I'm unsure if we should accept only resource identifiers or both URIs and strings for documents. The expected behaviour given the rest of the API is probably what you're stating, though. I would gladly accept a pull request that makes it behave as such!
I'm back at it and would like to contribute to the documentation again.
I've used the chunker (html) and segmenter (stanford) to break down an HTML document into sentences. I am storing the parsed document now in Mongo using the serialized, but I can't seem to figure out the API for retrieving one and the same.
This is more of a users group question, which I'd be happy to post on, but I would like to add the docs myself when I figure this out.