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

Language setup #841

Merged
merged 9 commits into from
Aug 23, 2016
Merged

Language setup #841

merged 9 commits into from
Aug 23, 2016

Conversation

blowmage
Copy link
Contributor

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.

Call annotation and get response object modeled out.
Model Document to hold text vs. html, and content vs. GSC url.
@blowmage blowmage added the api: language Issues related to the Cloud Natural Language API API. label Aug 23, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 23, 2016
@coveralls
Copy link

coveralls commented Aug 23, 2016

Coverage Status

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.
@coveralls
Copy link

coveralls commented Aug 23, 2016

Coverage Status

Coverage decreased (-1.1%) to 94.671% when pulling 1251517 on blowmage:language-setup into 598f85f on GoogleCloudPlatform:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.9%) to 94.927% when pulling e536589 on blowmage:language-setup into 598f85f on GoogleCloudPlatform:master.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.9%) to 94.927% when pulling e536589 on blowmage:language-setup into 598f85f on GoogleCloudPlatform:master.

@coveralls
Copy link

coveralls commented Aug 23, 2016

Coverage Status

Coverage decreased (-0.9%) to 94.927% when pulling e536589 on blowmage:language-setup into 598f85f on GoogleCloudPlatform:master.

@coveralls
Copy link

coveralls commented Aug 23, 2016

Coverage Status

Coverage decreased (-0.1%) to 95.661% when pulling 6a61d0c on blowmage:language-setup into 598f85f on GoogleCloudPlatform:master.

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.

@quartzmo
Copy link
Member

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.

@quartzmo
Copy link
Member

Ugh, I would love to merge this, but Job #1403 seems stalled. I'll wait a bit longer.

@coveralls
Copy link

coveralls commented Aug 23, 2016

Coverage Status

Coverage decreased (-0.1%) to 95.661% when pulling 6a61d0c on blowmage:language-setup into 598f85f on GoogleCloudPlatform:master.

@quartzmo quartzmo added this to the Natural Language milestone Aug 23, 2016
@quartzmo quartzmo merged commit db7e4ad into googleapis:master Aug 23, 2016
Allow Document to know if it contains content or a URL.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: language Issues related to the Cloud Natural Language API API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants