class CloudmersiveNlpApiClient::PosTaggerApi

Attributes

api_client[RW]

Public Class Methods

new(api_client = ApiClient.default) click to toggle source
# File lib/cloudmersive-nlp-api-client/api/pos_tagger_api.rb, line 19
def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Public Instance Methods

pos_tagger_tag_adjectives(request, opts = {}) click to toggle source

Part-of-speech tag a string, filter to adjectives Part-of-speech (POS) tag a string, find the adjectives, and return result as JSON @param request Input string @param [Hash] opts the optional parameters @return [PosResponse]

# File lib/cloudmersive-nlp-api-client/api/pos_tagger_api.rb, line 27
def pos_tagger_tag_adjectives(request, opts = {})
  data, _status_code, _headers = pos_tagger_tag_adjectives_with_http_info(request, opts)
  data
end
pos_tagger_tag_adjectives_with_http_info(request, opts = {}) click to toggle source

Part-of-speech tag a string, filter to adjectives Part-of-speech (POS) tag a string, find the adjectives, and return result as JSON @param request Input string @param [Hash] opts the optional parameters @return [Array<(PosResponse, Fixnum, Hash)>] PosResponse data, response status code and response headers

# File lib/cloudmersive-nlp-api-client/api/pos_tagger_api.rb, line 37
def pos_tagger_tag_adjectives_with_http_info(request, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: PosTaggerApi.pos_tagger_tag_adjectives ...'
  end
  # verify the required parameter 'request' is set
  if @api_client.config.client_side_validation && request.nil?
    fail ArgumentError, "Missing the required parameter 'request' when calling PosTaggerApi.pos_tagger_tag_adjectives"
  end
  # resource path
  local_var_path = '/nlp-v2/pos/tag/adjectives'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(request)
  auth_names = ['Apikey']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'PosResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: PosTaggerApi#pos_tagger_tag_adjectives\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
pos_tagger_tag_adverbs(request, opts = {}) click to toggle source

Part-of-speech tag a string, filter to adverbs Part-of-speech (POS) tag a string, find the adverbs, and return result as JSON @param request Input string @param [Hash] opts the optional parameters @return [PosResponse]

# File lib/cloudmersive-nlp-api-client/api/pos_tagger_api.rb, line 81
def pos_tagger_tag_adverbs(request, opts = {})
  data, _status_code, _headers = pos_tagger_tag_adverbs_with_http_info(request, opts)
  data
end
pos_tagger_tag_adverbs_with_http_info(request, opts = {}) click to toggle source

Part-of-speech tag a string, filter to adverbs Part-of-speech (POS) tag a string, find the adverbs, and return result as JSON @param request Input string @param [Hash] opts the optional parameters @return [Array<(PosResponse, Fixnum, Hash)>] PosResponse data, response status code and response headers

# File lib/cloudmersive-nlp-api-client/api/pos_tagger_api.rb, line 91
def pos_tagger_tag_adverbs_with_http_info(request, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: PosTaggerApi.pos_tagger_tag_adverbs ...'
  end
  # verify the required parameter 'request' is set
  if @api_client.config.client_side_validation && request.nil?
    fail ArgumentError, "Missing the required parameter 'request' when calling PosTaggerApi.pos_tagger_tag_adverbs"
  end
  # resource path
  local_var_path = '/nlp-v2/pos/tag/adverbs'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(request)
  auth_names = ['Apikey']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'PosResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: PosTaggerApi#pos_tagger_tag_adverbs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
pos_tagger_tag_nouns(request, opts = {}) click to toggle source

Part-of-speech tag a string, filter to nouns Part-of-speech (POS) tag a string, find the nouns, and return result as JSON @param request Input string @param [Hash] opts the optional parameters @return [PosResponse]

# File lib/cloudmersive-nlp-api-client/api/pos_tagger_api.rb, line 135
def pos_tagger_tag_nouns(request, opts = {})
  data, _status_code, _headers = pos_tagger_tag_nouns_with_http_info(request, opts)
  data
end
pos_tagger_tag_nouns_with_http_info(request, opts = {}) click to toggle source

Part-of-speech tag a string, filter to nouns Part-of-speech (POS) tag a string, find the nouns, and return result as JSON @param request Input string @param [Hash] opts the optional parameters @return [Array<(PosResponse, Fixnum, Hash)>] PosResponse data, response status code and response headers

# File lib/cloudmersive-nlp-api-client/api/pos_tagger_api.rb, line 145
def pos_tagger_tag_nouns_with_http_info(request, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: PosTaggerApi.pos_tagger_tag_nouns ...'
  end
  # verify the required parameter 'request' is set
  if @api_client.config.client_side_validation && request.nil?
    fail ArgumentError, "Missing the required parameter 'request' when calling PosTaggerApi.pos_tagger_tag_nouns"
  end
  # resource path
  local_var_path = '/nlp-v2/pos/tag/nouns'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(request)
  auth_names = ['Apikey']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'PosResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: PosTaggerApi#pos_tagger_tag_nouns\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
pos_tagger_tag_pronouns(request, opts = {}) click to toggle source

Part-of-speech tag a string, filter to pronouns Part-of-speech (POS) tag a string, find the pronouns, and return result as JSON @param request Input string @param [Hash] opts the optional parameters @return [PosResponse]

# File lib/cloudmersive-nlp-api-client/api/pos_tagger_api.rb, line 189
def pos_tagger_tag_pronouns(request, opts = {})
  data, _status_code, _headers = pos_tagger_tag_pronouns_with_http_info(request, opts)
  data
end
pos_tagger_tag_pronouns_with_http_info(request, opts = {}) click to toggle source

Part-of-speech tag a string, filter to pronouns Part-of-speech (POS) tag a string, find the pronouns, and return result as JSON @param request Input string @param [Hash] opts the optional parameters @return [Array<(PosResponse, Fixnum, Hash)>] PosResponse data, response status code and response headers

# File lib/cloudmersive-nlp-api-client/api/pos_tagger_api.rb, line 199
def pos_tagger_tag_pronouns_with_http_info(request, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: PosTaggerApi.pos_tagger_tag_pronouns ...'
  end
  # verify the required parameter 'request' is set
  if @api_client.config.client_side_validation && request.nil?
    fail ArgumentError, "Missing the required parameter 'request' when calling PosTaggerApi.pos_tagger_tag_pronouns"
  end
  # resource path
  local_var_path = '/nlp-v2/pos/tag/pronouns'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(request)
  auth_names = ['Apikey']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'PosResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: PosTaggerApi#pos_tagger_tag_pronouns\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
pos_tagger_tag_sentence(request, opts = {}) click to toggle source

Part-of-speech tag a string Part-of-speech (POS) tag a string and return result as JSON @param request Input string @param [Hash] opts the optional parameters @return [PosResponse]

# File lib/cloudmersive-nlp-api-client/api/pos_tagger_api.rb, line 243
def pos_tagger_tag_sentence(request, opts = {})
  data, _status_code, _headers = pos_tagger_tag_sentence_with_http_info(request, opts)
  data
end
pos_tagger_tag_sentence_with_http_info(request, opts = {}) click to toggle source

Part-of-speech tag a string Part-of-speech (POS) tag a string and return result as JSON @param request Input string @param [Hash] opts the optional parameters @return [Array<(PosResponse, Fixnum, Hash)>] PosResponse data, response status code and response headers

# File lib/cloudmersive-nlp-api-client/api/pos_tagger_api.rb, line 253
def pos_tagger_tag_sentence_with_http_info(request, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: PosTaggerApi.pos_tagger_tag_sentence ...'
  end
  # verify the required parameter 'request' is set
  if @api_client.config.client_side_validation && request.nil?
    fail ArgumentError, "Missing the required parameter 'request' when calling PosTaggerApi.pos_tagger_tag_sentence"
  end
  # resource path
  local_var_path = '/nlp-v2/pos/tag/sentence'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(request)
  auth_names = ['Apikey']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'PosResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: PosTaggerApi#pos_tagger_tag_sentence\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
pos_tagger_tag_verbs(request, opts = {}) click to toggle source

Part-of-speech tag a string, filter to verbs Part-of-speech (POS) tag a string, find the verbs, and return result as JSON @param request Input string @param [Hash] opts the optional parameters @return [PosResponse]

# File lib/cloudmersive-nlp-api-client/api/pos_tagger_api.rb, line 297
def pos_tagger_tag_verbs(request, opts = {})
  data, _status_code, _headers = pos_tagger_tag_verbs_with_http_info(request, opts)
  data
end
pos_tagger_tag_verbs_with_http_info(request, opts = {}) click to toggle source

Part-of-speech tag a string, filter to verbs Part-of-speech (POS) tag a string, find the verbs, and return result as JSON @param request Input string @param [Hash] opts the optional parameters @return [Array<(PosResponse, Fixnum, Hash)>] PosResponse data, response status code and response headers

# File lib/cloudmersive-nlp-api-client/api/pos_tagger_api.rb, line 307
def pos_tagger_tag_verbs_with_http_info(request, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: PosTaggerApi.pos_tagger_tag_verbs ...'
  end
  # verify the required parameter 'request' is set
  if @api_client.config.client_side_validation && request.nil?
    fail ArgumentError, "Missing the required parameter 'request' when calling PosTaggerApi.pos_tagger_tag_verbs"
  end
  # resource path
  local_var_path = '/nlp-v2/pos/tag/verbs'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(request)
  auth_names = ['Apikey']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'PosResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: PosTaggerApi#pos_tagger_tag_verbs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end