Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

2377 - 3 #299

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

2377 - 3 #299

wants to merge 16 commits into from

Conversation

idealasgas
Copy link
Contributor

@idealasgas idealasgas commented Aug 1, 2018

Номер

2377

Номер задания

3

Ссылка на видео с демо

https://youtu.be/VnCZ9ONpfvg

Комментарии

Хотел сделать то-то, но не успел и не понимаю.

end

def documents(comment)
{ 'documents': [{ 'id' => '1', 'language' => 'ru', 'text' => comment.comment.to_s }] }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lint/Syntax: unexpected token tCOLON
Lint/Syntax: unexpected token tRCURLY

comment.update score: convert((JSON response.body)['documents'][0]['score'])
end

def convert(value)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UtilityFunction: TextAnalytics#convert doesn't depend on instance state (maybe move it to another class?). More info.

@uri = URI('https://westeurope.api.cognitive.microsoft.com/text/analytics/v2.0/sentiment')
end

def analyse(comment)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/AbcSize: Assignment Branch Condition size for analyse is too high. [15.03/15]

@alexshagov
Copy link
Collaborator

Let's start with RESTful routes.

image


get '/clear' do
Ohm.redis.call('FLUSHALL')
#erb :active_page

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/LeadingCommentSpace: Missing space after #.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants