Arff::Util - ARFF files processing utilities.


Arff-Util documentation  | view source Contained in the Arff-Util distribution.

Index


NAME

Top

Arff::Util - ARFF files processing utilities. This is a moose-based class.

VERSION

Top

Version 1.2

SYNOPSIS

Top

Quick summary of what the module does.

  use ARFF::Util;

  my $arff_object = ARFF::Util->new();
  # load .arff formatted file into the buffer, and return pointer to buffer
  $arff_hash = $arff_object->load_arff($file_address);

  # save given buffer into the .arff formatted file
  $arff_object->save_arff($arff_hash, $file_address);

DESCRIPTION

Top

ARFF::Util provides a collection of methods for processing ARFF formatted files. "An ARFF (Attribute-Relation File Format) file is an ASCII text file that describes a list of instances sharing a set of attributes." for more information about ARFF format visit http://www.cs.waikato.ac.nz/~ml/weka/arff.html

EXPORT

Top

Object Attributes

Top

relation

 This is a buffer hash
 Structure of hash:

 relation -> {
		attributes => [
				{
					attribute_name => x1,
					attribute_type => x2,
				},...
			      ]
		records    => [
				{
					attribute_name1 => value1,
					attribute_name2 => value2,...
				},...
			      ]
		data_record_count => x
	      }
=cut

has relation => ( is => 'rw', isa => 'HashRef', default => sub{{ attributes => [], records => [], data_record_count => 0 }} );

error_count

Number of errors occured during the parsing or saving

debug_mode

Set it to one to see detail info

FUNCTIONS

Top

load_arff

Get arff file path and load it in buffer

save_arff

Save given buffer into the .arff formatted file.

AUTHORS

Top

Ehsan Emadzadeh, <ehsan0emadzadeh at yahoo.com>

Contributing developer:

 - Ondrej Dusek

BUGS

Top

Please report any bugs or feature requests to bug-arff-util at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Arff-Util. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

Top

You can contact me: eemadzadeh [at] gmail

or

You can find documentation for this module with the perldoc command.

    perldoc Arff::Util




You can also look for information at:

* RT: CPAN's request tracker

http://rt.cpan.org/NoAuth/Bugs.html?Dist=Arff-Util

* AnnoCPAN: Annotated CPAN documentation

http://annocpan.org/dist/Arff-Util

* CPAN Ratings

http://cpanratings.perl.org/d/Arff-Util

* Search CPAN

http://search.cpan.org/dist/Arff-Util/

ACKNOWLEDGEMENTS

Top

COPYRIGHT & LICENSE

Top


Arff-Util documentation  | view source Contained in the Arff-Util distribution.