-
Notifications
You must be signed in to change notification settings - Fork 538
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 setup #841
Language setup #841
Conversation
Call annotation and get response object modeled out. Model Document to hold text vs. html, and content vs. GSC url.
Coverage decreased (-1.4%) to 94.353% when pulling d82515d877609c3b80162fa853f92d05b63df610 on blowmage:language-setup into 598f85f on GoogleCloudPlatform:master. |
Also add some unit test coverage for Entity and Entities.
d82515d
to
1251517
Compare
2 similar comments
annotation.tokens.must_be :empty? | ||
end | ||
|
||
it "runs only the sentiment feature" do |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
I'm really happy with this new approach to test-driving the development against a new service. The acceptance test coverage is just awesome, and the unit tests that follow are based on empirical fact, not speculation. This is the way to do it imo. |
Ugh, I would love to merge this, but Job #1403 seems stalled. I'll wait a bit longer. |
Allow Document to know if it contains content or a URL.
Stand up the Natural Language service implementation. I decided to drive the development against the live service using acceptance tests, hence the lack of mocked out unit tests. Unit tests will be added in a later PR, but for now it would be good to get this implementation accepted so we can start moving on other concerns like documentation. (There is some documentation, but it is no where near final.)
The service is most similar to Vision. There is a main
#annotation
method that takes content arguments, and a Document class that models the content and can also call an#annotation
method.