{"id":37021870,"url":"https://github.com/computablefacts/morta","last_synced_at":"2026-01-14T02:36:08.268Z","repository":{"id":44706857,"uuid":"292534950","full_name":"computablefacts/morta","owner":"computablefacts","description":"Morta is a proof-of-concept Java implementation of a span categorizer.","archived":true,"fork":false,"pushed_at":"2022-05-31T15:45:45.000Z","size":434,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-24T15:51:45.591Z","etag":null,"topics":["data-science","java-library","machine-learning","text-classification"],"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/computablefacts.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":"2020-09-03T10:13:38.000Z","updated_at":"2023-01-27T21:50:54.000Z","dependencies_parsed_at":"2022-09-13T23:11:43.142Z","dependency_job_id":null,"html_url":"https://github.com/computablefacts/morta","commit_stats":null,"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"purl":"pkg:github/computablefacts/morta","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/computablefacts%2Fmorta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/computablefacts%2Fmorta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/computablefacts%2Fmorta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/computablefacts%2Fmorta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/computablefacts","download_url":"https://codeload.github.com/computablefacts/morta/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/computablefacts%2Fmorta/sbom","scorecard":{"id":301694,"data":{"date":"2025-08-11","repo":{"name":"github.com/computablefacts/morta","commit":"834d303eef3e46656d906bef1225cbe05abe2985"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","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":"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":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":10,"reason":"no binaries found in the repo","details":null,"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":"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":"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:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE: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"}}]},"last_synced_at":"2025-08-17T20:47:49.456Z","repository_id":44706857,"created_at":"2025-08-17T20:47:49.456Z","updated_at":"2025-08-17T20:47:49.456Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"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":["data-science","java-library","machine-learning","text-classification"],"created_at":"2026-01-14T02:36:07.759Z","updated_at":"2026-01-14T02:36:08.261Z","avatar_url":"https://github.com/computablefacts.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Morta\n\n![Maven Central](https://img.shields.io/maven-central/v/com.computablefacts/morta)\n[![Build Status](https://travis-ci.com/computablefacts/morta.svg?branch=master)](https://travis-ci.com/computablefacts/morta)\n[![codecov](https://codecov.io/gh/computablefacts/morta/branch/master/graph/badge.svg)](https://codecov.io/gh/computablefacts/morta)\n\nMorta is a proof-of-concept Java implementation of a span categorizer using many \nideas from [Snorkel](https://www.snorkel.org/).\n\n## Usage\n\nFirst, and unlike Snorkel, Morta automatically creates Labeling Functions from\nuser-provided gold labels (if need be, these functions are then automatically merged\nwith handcrafted Labeling Functions). Then, the Labeling Functions are used to train\na Generative Model. At last, a Discriminative Model is trained. The output of each\nstep is saved as an XML file.\n\n### Creating Gold Labels\n\nThe format of a single Gold Label is :\n\n```\n{\n    \"id\": \"\u003cuuid\u003e\",\n    \"label\": \"\u003cmodel_name\u003e\",\n    \"data\": \"\u003ctext\u003e\",\n    \"is_true_positive\": \u003ctrue|false\u003e,\n    \"is_true_negative\": \u003ctrue|false\u003e,\n    \"is_false_positive\": \u003ctrue|false\u003e,\n    \"is_false_negative\": \u003ctrue|false\u003e\n}\n```\n\nThe Gold Labels must be grouped together as a [ND-JSON](http://ndjson.org/) file :\n\n```\n{\"id\":\"\u003cuuid\u003e\",\"label\":\"\u003cmodel_name\u003e\",\"data\":\"\u003ctext\u003e\",\"is_true_positive\":\u003ctrue|false\u003e,\"is_true_negative\":\u003ctrue|false\u003e,\"is_false_positive\":\u003ctrue|false\u003e,\"is_false_negative\":\u003ctrue|false\u003e}\n{\"id\":\"\u003cuuid\u003e\",\"label\":\"\u003cmodel_name\u003e\",\"data\":\"\u003ctext\u003e\",\"is_true_positive\":\u003ctrue|false\u003e,\"is_true_negative\":\u003ctrue|false\u003e,\"is_false_positive\":\u003ctrue|false\u003e,\"is_false_negative\":\u003ctrue|false\u003e}\n{\"id\":\"\u003cuuid\u003e\",\"label\":\"\u003cmodel_name\u003e\",\"data\":\"\u003ctext\u003e\",\"is_true_positive\":\u003ctrue|false\u003e,\"is_true_negative\":\u003ctrue|false\u003e,\"is_false_positive\":\u003ctrue|false\u003e,\"is_false_negative\":\u003ctrue|false\u003e}\n...\n```\n\nThe ND-JSON file must be gzipped.\n\n### Training a span categorizer\n\nTo automatically train a new span categorizer from a set of Gold Labels, \nrun the following command-line:\n\n```\njava -Xms4g -Xmx8g com.computablefacts.morta.SaturatedDive \\\n    -verbose true \\\n    -facts \"/home/user/2022-02-20_19-57-17/facts.prod.smacl.dab.json.gz\" \\\n    -documents \"/home/user/2022-02-20_19-57-17/documents.prod.smacl.dab.json.gz\" \\\n    -output_directory \"/home/user/2022-02-20_19-57-17\"\n```\n\nAdd `-label my_label` to train the span categorizer on `my_label` only.\n\n## Adding Morta to your build\n\nMorta's Maven group ID is `com.computablefacts` and its artifact ID is `morta`.\n\nTo add a dependency on Morta using Maven, use the following:\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.computablefacts\u003c/groupId\u003e\n  \u003cartifactId\u003emorta\u003c/artifactId\u003e\n  \u003cversion\u003e1.x\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Snapshots \n\nSnapshots of Morta built from the `master` branch are available through Sonatype \nusing the following dependency:\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.computablefacts\u003c/groupId\u003e\n  \u003cartifactId\u003emorta\u003c/artifactId\u003e\n  \u003cversion\u003e1.x-SNAPSHOT\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nIn order to be able to download snapshots from Sonatype add the following profile \nto your project `pom.xml`:\n\n```xml\n \u003cprofiles\u003e\n    \u003cprofile\u003e\n        \u003cid\u003eallow-snapshots\u003c/id\u003e\n        \u003cactivation\u003e\u003cactiveByDefault\u003etrue\u003c/activeByDefault\u003e\u003c/activation\u003e\n        \u003crepositories\u003e\n            \u003crepository\u003e\n                \u003cid\u003esnapshots-repo\u003c/id\u003e\n                \u003curl\u003ehttps://s01.oss.sonatype.org/content/repositories/snapshots\u003c/url\u003e\n                \u003creleases\u003e\u003cenabled\u003efalse\u003c/enabled\u003e\u003c/releases\u003e\n                \u003csnapshots\u003e\u003cenabled\u003etrue\u003c/enabled\u003e\u003c/snapshots\u003e\n            \u003c/repository\u003e\n        \u003c/repositories\u003e\n    \u003c/profile\u003e\n\u003c/profiles\u003e\n```\n\n## Publishing a new version\n\nDeploy a release to Maven Central with these commands:\n\n```bash\n$ git tag \u003cversion_number\u003e\n$ git push origin \u003cversion_number\u003e\n```\n\nTo update and publish the next SNAPSHOT version, just change and push the version:\n\n```bash\n$ mvn versions:set -DnewVersion=\u003cversion_number\u003e-SNAPSHOT\n$ git commit -am \"Update to version \u003cversion_number\u003e-SNAPSHOT\"\n$ git push origin master\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomputablefacts%2Fmorta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomputablefacts%2Fmorta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomputablefacts%2Fmorta/lists"}