{"id":42628062,"url":"https://github.com/vinhkhuc/jcrfsuite","last_synced_at":"2026-01-29T05:07:33.376Z","repository":{"id":13983924,"uuid":"16684835","full_name":"vinhkhuc/jcrfsuite","owner":"vinhkhuc","description":"Java interface for CRFsuite: http://www.chokkan.org/software/crfsuite/","archived":false,"fork":false,"pushed_at":"2017-08-15T07:12:55.000Z","size":9186,"stargazers_count":43,"open_issues_count":10,"forks_count":36,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-07-26T06:31:08.378Z","etag":null,"topics":["crf","crfsuite","java","jni","machine-learning","nlp"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vinhkhuc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-10T04:55:15.000Z","updated_at":"2024-07-24T19:38:38.000Z","dependencies_parsed_at":"2022-09-02T06:44:04.398Z","dependency_job_id":null,"html_url":"https://github.com/vinhkhuc/jcrfsuite","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/vinhkhuc/jcrfsuite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinhkhuc%2Fjcrfsuite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinhkhuc%2Fjcrfsuite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinhkhuc%2Fjcrfsuite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinhkhuc%2Fjcrfsuite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vinhkhuc","download_url":"https://codeload.github.com/vinhkhuc/jcrfsuite/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinhkhuc%2Fjcrfsuite/sbom","scorecard":{"id":922422,"data":{"date":"2025-08-11","repo":{"name":"github.com/vinhkhuc/jcrfsuite","commit":"3da2f665b300373818a70667937a2b07747106eb"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.3,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":1,"reason":"Found 4/23 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":3,"reason":"binaries present in source code","details":["Warn: binary detected: src/main/resources/crfsuite-0.12/Linux/amd64/libcrfsuite.so:1","Warn: binary detected: src/main/resources/crfsuite-0.12/Linux/i386/libcrfsuite.so:1","Warn: binary detected: src/main/resources/crfsuite-0.12/Mac/i386/libcrfsuite.dylib:1","Warn: binary detected: src/main/resources/crfsuite-0.12/Mac/x86_64/libcrfsuite.dylib:1","Warn: binary detected: src/main/resources/crfsuite-0.12/Windows/amd64/crfsuite.dll:1","Warn: binary detected: src/main/resources/crfsuite-0.12/Windows/x86/crfsuite.dll:1","Warn: binary detected: src/main/resources/crfsuite-0.12/native_loader/CrfSuiteNativeLoader.bytecode:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 11 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-25T05:38:41.185Z","repository_id":13983924,"created_at":"2025-08-25T05:38:41.185Z","updated_at":"2025-08-25T05:38:41.185Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28863184,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T22:56:21.783Z","status":"online","status_checked_at":"2026-01-29T02:00:06.714Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["crf","crfsuite","java","jni","machine-learning","nlp"],"created_at":"2026-01-29T05:07:32.869Z","updated_at":"2026-01-29T05:07:33.370Z","avatar_url":"https://github.com/vinhkhuc.png","language":"Java","funding_links":[],"categories":["人工智能"],"sub_categories":["机器学习"],"readme":"This is a Java interface for [crfsuite](http://www.chokkan.org/software/crfsuite/),\na fast implementation of Conditional Random Fields, using SWIG and class\ninjection technique (the same technique used in [snappy-java](https://github.com/xerial/snappy-java)).\nJcrfsuite provides API for loading trained model into memory and do sequential tagging in memory.\nModel training is done via command line interface.\n\nThe library is designed for building Java applications for fast text sequential tagging\nsuch as Part-Of-Speech (POS) tagging, phrase chunking, Named-Entity Recognition (NER), etc.\n\nJcrfsuite can be dropped into any Java web applications and run without problem with JVM's class loader.\n\n### Maven dependency\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.github.vinhkhuc\u003c/groupId\u003e\n  \u003cartifactId\u003ejcrfsuite\u003c/artifactId\u003e\n  \u003cversion\u003e0.6.1\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Building\n\n```bash\ngit clone https://github.com/vinhkhuc/jcrfsuite\ncd jcrfsuite\nmvn clean package\n```\n\n### How to use\n\n#### Model training\n```java\nimport com.github.jcrfsuite.CrfTrainer;\n...\nString trainFile = \"data/tweet-pos/train-oct27.txt\";\nString modelFile = \"twitter-pos.model\";\nCrfTrainer.train(trainFile, modelFile);\n```\n\n#### Sequential tagging\n```java\nimport com.github.jcrfsuite.CrfTagger;\nimport com.github.jcrfsuite.util.Pair;\n...\nString modelFile = \"twitter-pos.model\";\nString testFile = \"data/tweet-pos/test-daily547.txt\";\nCrfTagger crfTagger = new CrfTagger(modelFile);\nList\u003cList\u003cPair\u003cString, Double\u003e\u003e\u003e tagProbLists = crfTagger.tag(testFile);\n```\n\n### Example on Twitter Part-Of-Speech tagging\n\t\n#### Training\nTo train a POS model from Twitter POS data, run\n\n\u003cpre\u003e\njava -cp target/jcrfsuite-*.jar com.github.jcrfsuite.example.Train data/tweet-pos/train-oct27.txt twitter-pos.model\n\u003c/pre\u003e\n\t\n#### Tagging\nTo test the trained POS model against the test set, run\n\n\u003cpre\u003e\njava -cp target/jcrfsuite-*.jar com.github.jcrfsuite.example.Tag twitter-pos.model data/tweet-pos/test-daily547.txt\n\u003c/pre\u003e\n\t\nThe output should be as follows:\n\n\u003cpre\u003e\nGold\tPredict\tProbability\n........................\nN       N       0.99\nP       P       1.00\nZ       ^       0.59\n$       $       0.97\nN       N       1.00\nP       P       0.98\nA       N       0.80\n$       $       1.00\nN       N       0.99\nU       U       1.00\n\nAccuracy = 92.99%\n\u003c/pre\u003e\n\nNote that the accuracy might be slightly different than in the above output.\n\n### License\n\nJcrfsuite is released under the Apache License 2.0. The original crfsuite is distributed under the BSD License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinhkhuc%2Fjcrfsuite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvinhkhuc%2Fjcrfsuite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinhkhuc%2Fjcrfsuite/lists"}