<commit_before># ImaggaAutoTag

TODO: Write a gem description

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'imagga_auto_tag'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install imagga_auto_tag

## Usage

TODO: Write usage instructions here

## Contributing

1. Fork it ( https://github.com/[my-github-username]/imagga_auto_tag/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
<commit_msg>Add README<commit_after># ImaggaAutoTag

A super simple wrapper for fetching tags for an image URL from the [Imagga Auto Tagging API](http://imagga.com/solutions/auto-tagging.html).

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'imagga_auto_tag'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install imagga_auto_tag

## Usage

```ruby
client = ImaggaAutoTag::Client.new(your_imagga_api_key)
results = client.fetch("http://static.ddmcdn.com/gif/landscape-photography-1.jpg")

results.tags
# => array of tags

results.scrub(30)
# => array of tags with a confidence over 30%

results.tags[0].tap do |tag|
  tag.name # => tag name
  tag.confidence # => tag confidence as a float
end

results.to_csv
# => comma delimitted string of tag names
# => 'tag 1 name, tag 2 name, etc..'
```

## Contributing

1. Fork it ( https://github.com/[my-github-username]/imagga_auto_tag/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request

{'fraction_non_alphanumeric': 0.11614730878186968, 'fraction_numerical': 0.010198300283286119, 'mean_word_length': 4.060171919770774, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3415288', 'n_tokens_mistral': 612, 'n_tokens_neox': 571, 'n_words': 203}