{"id":13562887,"url":"https://github.com/angeloskath/php-nlp-tools","last_synced_at":"2025-04-11T06:23:42.862Z","repository":{"id":4380089,"uuid":"5516873","full_name":"angeloskath/php-nlp-tools","owner":"angeloskath","description":"Natural Language Processing Tools in PHP","archived":false,"fork":false,"pushed_at":"2024-07-22T11:11:32.000Z","size":917,"stargazers_count":757,"open_issues_count":15,"forks_count":156,"subscribers_count":64,"default_branch":"master","last_synced_at":"2025-03-27T06:07:33.269Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/angeloskath.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-08-22T23:53:43.000Z","updated_at":"2025-03-24T15:39:42.000Z","dependencies_parsed_at":"2022-08-03T09:00:38.044Z","dependency_job_id":"f8c0c920-000d-4cd3-9047-5d3d12739126","html_url":"https://github.com/angeloskath/php-nlp-tools","commit_stats":{"total_commits":99,"total_committers":7,"mean_commits":"14.142857142857142","dds":0.303030303030303,"last_synced_commit":"476e07c27fc032e4ca03ee599e7cd1ad0901af33"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angeloskath%2Fphp-nlp-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angeloskath%2Fphp-nlp-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angeloskath%2Fphp-nlp-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angeloskath%2Fphp-nlp-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/angeloskath","download_url":"https://codeload.github.com/angeloskath/php-nlp-tools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246952276,"owners_count":20859812,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T13:01:13.157Z","updated_at":"2025-04-03T07:08:35.565Z","avatar_url":"https://github.com/angeloskath.png","language":"PHP","funding_links":[],"categories":["Natural Language Processing","PHP"],"sub_categories":["Recommended core stack","Utilities \u0026 Tools"],"readme":"[PHP NlpTools](http://php-nlp-tools.com/)\n=============\n\nNlpTools is a set of php 5.3+ classes for beginner to\nsemi advanced natural language processing work.\n\nDocumentation\n-------------\n\nYou can find documentation and code examples at the project's [homepage](http://php-nlp-tools.com/documentation/).\n\nContents\n---------\n\n### Classification Models ###\n\n1. [Multinomial Naive Bayes](http://php-nlp-tools.com/documentation/bayesian-model.html)\n2. [Maximum Entropy (Conditional Exponential model)](http://php-nlp-tools.com/documentation/maximum-entropy-model.html)\n\n### Topic Modeling ###\n\nLda is still experimental and quite slow but it works. [See an example](http://php-nlp-tools.com/posts/introducing-latent-dirichlet-allocation.html).\n\n1. [Latent Dirichlet Allocation](http://php-nlp-tools.com/documentation/api/#NlpTools/Models/Lda)\n\n### Clustering ###\n\n1. [K-Means](http://php-nlp-tools.com/documentation/clustering.html)\n2. [Hierarchical Agglomerative Clustering](http://php-nlp-tools.com/documentation/clustering.html)\n   * SingleLink\n   * CompleteLink\n   * GroupAverage\n\n### Tokenizers ###\n\n1. [WhitespaceTokenizer](http://php-nlp-tools.com/documentation/api/#NlpTools/Tokenizers/WhitespaceTokenizer)\n2. [WhitespaceAndPunctuationTokenizer](http://php-nlp-tools.com/documentation/api/#NlpTools/Tokenizers/WhitespaceAndPunctuationTokenizer)\n3. [PennTreebankTokenizer](http://php-nlp-tools.com/documentation/api/#NlpTools/Tokenizers/PennTreebankTokenizer)\n4. [RegexTokenizer](http://php-nlp-tools.com/documentation/api/#NlpTools\\Tokenizers\\RegexTokenizer)\n5. [ClassifierBasedTokenizer](http://php-nlp-tools.com/documentation/api/#NlpTools/Tokenizers/ClassifierBasedTokenizer)\n   This tokenizer allows us to build a lot more complex tokenizers\n   than the previous ones\n\n### Documents ###\n\n1. [TokensDocument](http://php-nlp-tools.com/documentation/api/#NlpTools/Documents/TokensDocument)\n   represents a bag of words model for a document.\n2. [WordDocument](http://php-nlp-tools.com/documentation/api/#NlpTools/Documents/WordDocument)\n   represents a single word with the context of a larger document.\n3. [TrainingDocument](http://php-nlp-tools.com/documentation/api/#NlpTools/Documents/TrainingDocument)\n   represents a document whose class is known.\n4. [TrainingSet](http://php-nlp-tools.com/documentation/api/#NlpTools/Documents/TrainingSet)\n   a collection of TrainingDocuments\n\n### Feature factories ###\n\n1. [FunctionFeatures](http://php-nlp-tools.com/documentation/api/#NlpTools/FeatureFactories/FunctionFeatures)\n   Allows the creation of a feature factory from a number of callables\n2. [DataAsFeatures](http://php-nlp-tools.com/documentation/api/#NlpTools/FeatureFactories/DataAsFeatures)\n   Simply return the data as features.\n\n### Similarity ###\n\n1. [Jaccard Index](http://php-nlp-tools.com/documentation/api/#NlpTools/Similarity/JaccardIndex)\n2. [Cosine similarity](http://php-nlp-tools.com/documentation/api/#NlpTools/Similarity/CosineSimilarity)\n3. [Simhash](http://php-nlp-tools.com/documentation/api/#NlpTools/Similarity/Simhash)\n4. [Euclidean](http://php-nlp-tools.com/documentation/api/#NlpTools/Similarity/Euclidean)\n5. [HammingDistance](http://php-nlp-tools.com/documentation/api/#NlpTools/Similarity/HammingDistance)\n\n### Stemmers ###\n\n1. [PorterStemmer](http://php-nlp-tools.com/documentation/api/#NlpTools/Stemmers/PorterStemmer)\n2. [RegexStemmer](http://php-nlp-tools.com/documentation/api/#NlpTools/Stemmers/RegexStemmer)\n3. [LancasterStemmer](http://php-nlp-tools.com/documentation/api/#NlpTools/Stemmers/LancasterStemmer)\n4. [GreekStemmer](http://php-nlp-tools.com/documentation/api/#NlpTools/Stemmers/GreekStemmer)\n\n### Optimizers (MaxEnt only) ###\n\n1. [A gradient descent optimizer](http://php-nlp-tools.com/documentation/api/#NlpTools/Optimizers/MaxentGradientDescent)\n   (written in php) for educational use.\n   It is a simple implementation for anyone wanting to know a bit\n   more about either GD or MaxEnt models\n2. A fast (faster than nltk-scipy), parallel gradient descent\n   optimizer written in [Go](http://golang.org/). This optimizer\n   resides in another [repo](https://github.com/angeloskath/nlp-maxent-optimizer),\n   it is used via the [external optimizer](http://php-nlp-tools.com/documentation/api/#NlpTools/Optimizers/ExternalMaxentOptimizer).\n   TODO: At least write a readme for the optimizer written in Go.\n\n### Other ###\n\n1. Idf Inverse document frequency\n2. Stop words\n3. Language based normalizers\n4. Classifier based transformation for creating flexible preprocessing pipelines\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangeloskath%2Fphp-nlp-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fangeloskath%2Fphp-nlp-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangeloskath%2Fphp-nlp-tools/lists"}