<commit_before># CamtParser

![Travis Build state](https://api.travis-ci.org/Barzahlen/camt_parser.svg)

CamtParser is a Ruby Gem which does some basic parsing of camt053 files into an object structure
for easier usability instead of having to use an XML parser all the time.
Keep in mind that this does not include a complete parsing of the camt053 specification.
Fields that we did not need for our use-cases are simply ignored for now.

## Getting started

1. add the Gem to the Gemfile

        gem 'camt_parser'

2. Require the Gem at any point before using it
3. Use it!.

## Example
```ruby
camt = CamtParser::File.parse path_to_file
puts camt.group_headers.creation_date_time
camt.statements.each do |statement|
    puts statement.account.iban
    statement.entries.each do |entry|
        # Access individual entries/bank transfers
        puts entry.amount
        puts entry.debitor.iban
    end
end<commit_msg>Minor README fix<commit_after># CamtParser

![Travis Build state](https://api.travis-ci.org/Barzahlen/camt_parser.svg)

CamtParser is a Ruby Gem which does some basic parsing of camt053 files into an object structure
for easier usability instead of having to use an XML parser all the time.
Keep in mind that this does not include a complete parsing of the camt053 specification.
Fields that we did not need for our use-cases are simply ignored for now.

## Getting started

1. add the Gem to the Gemfile

        gem 'camt_parser'

2. Require the Gem at any point before using it
3. Use it!

## Example
```ruby
camt = CamtParser::File.parse path_to_file
puts camt.group_headers.creation_date_time
camt.statements.each do |statement|
    puts statement.account.iban
    statement.entries.each do |entry|
        # Access individual entries/bank transfers
        puts entry.amount
        puts entry.debitor.iban
    end
end
{'fraction_non_alphanumeric': 0.06121343445287107, 'fraction_numerical': 0.009750812567713976, 'mean_word_length': 3.664141414141414, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6086622', 'n_tokens_mistral': 562, 'n_tokens_neox': 534, 'n_words': 229}