Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
hell yeah, it works. remove logger
  • Loading branch information
simsicon committed May 29, 2012
1 parent 95258f1 commit 5013e64
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/189seg/base.rb
Expand Up @@ -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
Expand Down

0 comments on commit 5013e64

Please sign in to comment.