Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update distrib meta data

  • Loading branch information...
commit 4386a547bbec2571343d3ecab8b5c367fa6a31dd 1 parent 9bfd1eb
@ant0ine authored
View
1  .gitignore
@@ -9,3 +9,4 @@ pm_to_blib*
Algorithm-ContextVector-*
cover_db
MYMETA.yml
+MYMETA.json
View
1  MANIFEST
@@ -5,3 +5,4 @@ MANIFEST This list of files
META.yml
README
t/00-load.t
+META.json
View
42 META.json
@@ -0,0 +1,42 @@
+{
+ "abstract" : "Simple implementation based on Data::CosineSimilarity",
+ "author" : [
+ "Antoine Imbert <antoine.imbert@gmail.com>"
+ ],
+ "dynamic_config" : 1,
+ "generated_by" : "Module::Build version 0.38, CPAN::Meta::Converter version 2.110440",
+ "license" : [
+ "perl_5"
+ ],
+ "meta-spec" : {
+ "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
+ "version" : "2"
+ },
+ "name" : "Algorithm-ContextVector",
+ "prereqs" : {
+ "build" : {
+ "requires" : {
+ "Data::CosineSimilarity" : 0,
+ "Test::More" : 0
+ }
+ },
+ "configure" : {
+ "requires" : {
+ "Module::Build" : "0.38"
+ }
+ }
+ },
+ "provides" : {
+ "Algorithm::ContextVector" : {
+ "file" : "lib/Algorithm/ContextVector.pm",
+ "version" : "0.01"
+ }
+ },
+ "release_status" : "stable",
+ "resources" : {
+ "license" : [
+ "http://dev.perl.org/licenses/"
+ ]
+ },
+ "version" : "0.01"
+}
View
23 META.yml
@@ -0,0 +1,23 @@
+---
+abstract: 'Simple implementation based on Data::CosineSimilarity'
+author:
+ - 'Antoine Imbert <antoine.imbert@gmail.com>'
+build_requires:
+ Data::CosineSimilarity: 0
+ Test::More: 0
+configure_requires:
+ Module::Build: 0.38
+dynamic_config: 1
+generated_by: 'Module::Build version 0.38, CPAN::Meta::Converter version 2.110440'
+license: perl
+meta-spec:
+ url: http://module-build.sourceforge.net/META-spec-v1.4.html
+ version: 1.4
+name: Algorithm-ContextVector
+provides:
+ Algorithm::ContextVector:
+ file: lib/Algorithm/ContextVector.pm
+ version: 0.01
+resources:
+ license: http://dev.perl.org/licenses/
+version: 0.01
View
15 Makefile.PL
@@ -0,0 +1,15 @@
+# Note: this file was auto-generated by Module::Build::Compat version 0.3800
+use ExtUtils::MakeMaker;
+WriteMakefile
+(
+ 'NAME' => 'Algorithm::ContextVector',
+ 'VERSION_FROM' => 'lib/Algorithm/ContextVector.pm',
+ 'PREREQ_PM' => {
+ 'Data::CosineSimilarity' => 0,
+ 'Test::More' => 0
+ },
+ 'INSTALLDIRS' => 'site',
+ 'EXE_FILES' => [],
+ 'PL_FILES' => {}
+)
+;
View
12 README
@@ -14,8 +14,11 @@ SYNOPSIS
my $results = $cv->predict( attributes => { ... } );
DESCRIPTION
+ Simple implementation based on Data::CosineSimilarity
+
$class->new( top => ... )
- During the training, keeps the top N most heavy weighted features.
+ During the training, keeps the $top most heavy weighted features. Keeps
+ the complete feature set if omitted.
$class->new_from_file( $filename )
Returns the instance of Algorithm::ContextVector stored in $filename.
@@ -31,3 +34,10 @@ DESCRIPTION
Returns a hashref with the labels as the keys and the cosines as the
values.
+AUTHOR
+ Antoine Imbert, "<antoine.imbert at gmail.com>"
+
+LICENSE AND COPYRIGHT
+ This library is free software; you can redistribute it and/or modify it
+ under the same terms as Perl itself.
+
View
12 lib/Algorithm/ContextVector.pm
@@ -23,6 +23,8 @@ Algorithm::ContextVector - Simple implementation based on Data::CosineSimilarity
=head1 DESCRIPTION
+Simple implementation based on Data::CosineSimilarity
+
=head2 $class->new( top => ... )
During the training, keeps the $top most heavy weighted features.
@@ -187,4 +189,14 @@ sub predict {
return \%r;
}
+=head1 AUTHOR
+
+Antoine Imbert, C<< <antoine.imbert at gmail.com> >>
+
+=head1 LICENSE AND COPYRIGHT
+
+This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
+
+=cut
+
1;
Please sign in to comment.
Something went wrong with that request. Please try again.