{"id":13696562,"url":"https://github.com/myleott/JGibbLabeledLDA","last_synced_at":"2025-05-03T17:31:39.552Z","repository":{"id":6253171,"uuid":"7485705","full_name":"myleott/JGibbLabeledLDA","owner":"myleott","description":"Labeled LDA in Java (based on JGibbLDA)","archived":false,"fork":false,"pushed_at":"2016-07-18T16:39:36.000Z","size":2289,"stargazers_count":106,"open_issues_count":2,"forks_count":58,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-04-14T06:11:57.374Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/myleott.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-01-07T16:30:10.000Z","updated_at":"2025-04-12T21:06:44.000Z","dependencies_parsed_at":"2022-09-12T23:52:41.584Z","dependency_job_id":null,"html_url":"https://github.com/myleott/JGibbLabeledLDA","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myleott%2FJGibbLabeledLDA","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myleott%2FJGibbLabeledLDA/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myleott%2FJGibbLabeledLDA/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myleott%2FJGibbLabeledLDA/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/myleott","download_url":"https://codeload.github.com/myleott/JGibbLabeledLDA/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252226766,"owners_count":21714866,"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-02T18:00:42.585Z","updated_at":"2025-05-03T17:31:38.440Z","avatar_url":"https://github.com/myleott.png","language":"Java","funding_links":[],"categories":["Models","人工智能"],"sub_categories":["Labeled Latent Dirichlet Allocation (LLDA, Labeled-LDA, L-LDA) [:page_facing_up:](https://www.aclweb.org/anthology/D09-1026.pdf)","机器学习"],"readme":"Labeled LDA in Java (based on JGibbLDA)\n=======================================\n\nThis is a Java implementation of Labeled LDA based on the popular\n[JGibbLDA](http://jgibblda.sourceforge.net/) package. The code has been heavily\nrefactored and a few additional options have been added. See sections below for\nmore details.\n\nData Format\n-----------\n\nThe input data format is similar to the [JGibbLDA input data\nformat](http://jgibblda.sourceforge.net/#_2.3._Input_Data_Format), with some\nminor cosmetic changes and additional support for document labels necessary for\nLabeled LDA. We first describe the (modified) input format for unlabeled\ndocuments, followed by the (new) input format for labeled documents.\n\n**Changed from JGibbLDA**: All input/output files must be Gzipped.\n\n### Unlabeled Documents\n\nUnlabeled documents have the following format:\n\n    document_1\n    document_2\n    ...\n    document_m\n\nwhere each document is a space-separated list of terms, i.e.,:\n\n    document_i = term_1 term_2 ... term_n\n\n**Changed from JGibbLDA**: The first line *should not* be an integer indicating\nthe number of documents in the file. The original JGibbLDA code has been\nmodified to identify the number of documents automatically.\n\n**Note**: Labeled and unlabeled documents may be mixed in the input file, thus\nyou must ensure that unlabeled documents do not begin with a left square bracket\n(see Labeled Document input format below). One easy fix is to prepend a space\ncharacter (' ') to each unlabeled document line.\n\n### Labeled Documents\n\nLabeled documents follow a format similar to unlabeled documents, but the with\nlabels given at the beginning of each line and surrounded by square brackets,\ne.g.:\n\n    [label_1,1 label_1,2 ... label_1,l_1] document_1\n    [label_2,1 label_2,2 ... label_2,l_2] document_2\n    ...\n    [label_m,1 label_m,2 ... label_m,l_m] document_m\n\nwhere each label is an integer in the range [0, K-1], for K equal to the number\nof topics (-ntopics).\n\n**Note**: Labeled and unlabeled documents may be mixed in the input file. An\nunlabeled document is equivalent to labeling a document with every label in the\nrange [0, K-1].\n\nUsage\n-----\n\nPlease see the [JGibbLDA usage](http://jgibblda.sourceforge.net/#_2.2._Command_Line_\u0026_Input_Parameter), noting the following changes:\n\n*   All input files must be Gzipped. All output files are also Gzipped.\n\n*   New options have been added:\n\n    **-nburnin \u003cint\u003e**: Discard this many initial iterations when taking samples.\n\n    **-samplinglag \u003cint\u003e**: The number of iterations between samples.\n\n    **-infseparately**: Inference is done separately for each document, as if\n    inference for each document was performed in isolation.\n\n    **-unlabeled**: Ignore document labels, i.e., treat every document as\n    unlabeled.\n\n*   Some options have been deleted:\n\n    **-wordmap**: Filename is automatically built based on model path.\n\nContact\n-------\n\nPlease direct questions to [Myle Ott](myleott@gmail.com).\n\nLicense\n-------\n\nFollowing JGibbLDA, this code is licensed under the GPLv2. Please see the\nLICENSE file for the full license.\n\nLabeled LDA in Java\nCopyright (C) 2008-2013 Myle Ott (Labeled LDA), Xuan-Hieu Phan and Cam-Tu Nguyen (JGibbLDA)\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU General Public License\nas published by the Free Software Foundation; either version 2\nof the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program; if not, write to the Free Software\nFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyleott%2FJGibbLabeledLDA","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmyleott%2FJGibbLabeledLDA","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyleott%2FJGibbLabeledLDA/lists"}