{"id":16660622,"url":"https://github.com/mccraigmccraig/maxent_string_classifier","last_synced_at":"2026-03-13T11:32:34.201Z","repository":{"id":552307,"uuid":"182761","full_name":"mccraigmccraig/maxent_string_classifier","owner":"mccraigmccraig","description":"a JRuby maximum entropy classifier for string data, based on the OpenNLP Maxent framework","archived":false,"fork":false,"pushed_at":"2009-07-06T16:50:21.000Z","size":654,"stargazers_count":9,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-04T11:17:09.753Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mccraigmccraig.png","metadata":{"files":{"readme":"README.txt","changelog":"History.txt","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-04-22T15:23:54.000Z","updated_at":"2020-05-23T10:27:05.000Z","dependencies_parsed_at":"2022-07-04T23:01:08.035Z","dependency_job_id":null,"html_url":"https://github.com/mccraigmccraig/maxent_string_classifier","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mccraigmccraig/maxent_string_classifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mccraigmccraig%2Fmaxent_string_classifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mccraigmccraig%2Fmaxent_string_classifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mccraigmccraig%2Fmaxent_string_classifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mccraigmccraig%2Fmaxent_string_classifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mccraigmccraig","download_url":"https://codeload.github.com/mccraigmccraig/maxent_string_classifier/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mccraigmccraig%2Fmaxent_string_classifier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30466314,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T11:00:43.441Z","status":"ssl_error","status_checked_at":"2026-03-13T11:00:23.173Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-10-12T10:30:03.649Z","updated_at":"2026-03-13T11:32:34.182Z","avatar_url":"https://github.com/mccraigmccraig.png","language":"Ruby","readme":"= maxent_string_classifier\n\nthis code was developed by trampoline systems [ http://trampolinesystems.com ]\nas part of its sonar platform and released under a BSD licence for community use\n\nhttp://www.github.com/mccraigmccraig/maxent_string_classifier\n\n== DESCRIPTION:\n\na JRuby maxent classifier for string data, based on the OpenNLP Maxent framework\n[ http://maxent.sourceforge.net/ ].\n\nit's easy to build your own classifier... look in the data directory for two\nexamples\n\n== FEATURES:\n\n- train classifiers for string data using files of manually classified examples\n- classify string data\n\n== PROBLEMS:\n\n- set of features available for classification is fixed... new features require\ncode change\n\n== SYNOPSIS:\n\nrequire 'rubygems'\nrequire 'maxent_string_classifier'\n\n# train and persist a model with a directory name. \n# training data for each outcome is in .txt files in the directory. \n# a model.yml file defines features to be used for contexts, and training params\n#\n# the model is written as a .txt.gz file in the directory\nmodel = MaxentStringClassifier::Loader.train( \"/Users/mccraig/language\" )\n\n# load a model with it's directory name. .txt.gz model and model.yml are\n# required\nmodel = MaxentStringClassifier::Loader.load( \"/Users/mccraig/language\" )\n\n# classify\nmodel.classify( \"je voudrais une chambre\" )\nmodel.classify( \"i am going to buy an elephant\" )\n\n# classify with a margin of certainty\nmodel.classify_margin( \"i am une chambre\", 1.1)\n\n# models in data dir are loaded with relative path\nMaxentStringClassifier::Loader.load( \"language\" )\n\n== REQUIREMENTS:\n\nJRuby\n\n== INSTALL:\n\nsudo jgem sources -a http://gems.github.com\nsudo jgem install mccraigmccraig-maxent_string_classifier\n\n== LICENSE:\n\n(The BSD License)\n\nCopyright (c) 2009, Trampoline Systems Ltd, http://trampolinesystems.com/\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n  * Redistributions of source code must retain the above copyright notice,\n    this list of conditions and the following disclaimer.\n  * Redistributions in binary form must reproduce the above copyright notice,\n    this list of conditions and the following disclaimer in the documentation\n    and/or other materials provided with the distribution.\n  * Neither the name of the \u003cORGANIZATION\u003e nor the names of its contributors may\n    be used to endorse or promote products derived from this software without\n    specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n","funding_links":[],"categories":["Machine Learning Libraries"],"sub_categories":["Text-to-Speech-to-Text","Statistical models"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmccraigmccraig%2Fmaxent_string_classifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmccraigmccraig%2Fmaxent_string_classifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmccraigmccraig%2Fmaxent_string_classifier/lists"}