prompts

Re-implementation of the Python package "LatentSemanticAnalyzer"

  • Implement the Raku package "ML::LatentSemanticAnalyzer" based on the Python package "LatentSemanticAnalyzer" with code placed in the directory "./Python/LatentSemanticAnalyzer".

  • For the sparse matrix operations use the operations of "Math::SparseMatrix" -- see the file "./lib/Math/SparseMatrix.rakumod".

  • For the document-term creations and functions use the role ML::SparseMatrixRecommender::DocumentTermWeightish -- see the file "./lib/ML/SparseMatrixRecommender/DocumentTermWeightish.rakumod"

  • Your new implementation code should be only in the directory "./lib/ML/LatentSemanticAnalyzer" and the file "./lib/ML/LatentSemanticAnalyzer.rakumod".

  • Use kebab case for all method names and argument names.

  • Do not implement SVD and NNMF. Do not implement new sparse matrix functionalities.

Unit tests

Convert the Python tests in "./tests" into Raku tests in "./t". Use the same file names.

ML::LatentSemanticAnalyzer v0.0.3

Package for Latent Semantic Analysis (LSA) computations.

Authors

  • Anton Antonov

License

Artistic-2.0

Dependencies

Math::SparseMatrix:ver<0.0.15+>ML::SparseMatrixRecommender:ver<0.0.4+>Lingua::EN::Stem::PorterLingua::StopwordsISO:ver<0.1.0+>

Test Dependencies

Provides

  • ML::LatentSemanticAnalyzer
  • ML::LatentSemanticAnalyzer::Utilities

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.