Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

hell yeah, it works. remove logger

  • Loading branch information...
commit 5013e64db7721f12a13fa20d865cf47cd67252df 1 parent 95258f1
@simsicon authored
Showing with 0 additions and 6 deletions.
  1. +0 −6 lib/189seg/base.rb
View
6 lib/189seg/base.rb
@@ -7,16 +7,10 @@ def initialize(apid, key, product_id)
end
def segment(phrase)
- logger "get into segment"
api_url = 'http://125.64.11.43:8080/udt-see/StartServiceServlet'
- logger "start to init params"
params = init_params
- logger "get params"
- logger params
params['params']['DivideText'] = phrase
- logger "start to post"
response = RestClient.post api_url, encode_json(params), :content_type => :json, :accept => :json
- logger "start to decode"
decoded_response = decode_json(response.to_s)
decoded_response
end
Please sign in to comment.
Something went wrong with that request. Please try again.