{"id":27380141,"url":"https://github.com/rootfs/candle-bert-go","last_synced_at":"2026-04-30T13:34:25.799Z","repository":{"id":287457911,"uuid":"964790318","full_name":"rootfs/candle-bert-go","owner":"rootfs","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-11T20:09:59.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T14:19:55.312Z","etag":null,"topics":["bert","bert-model","golang","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/rootfs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-04-11T19:41:36.000Z","updated_at":"2025-04-11T20:10:59.000Z","dependencies_parsed_at":"2025-04-11T21:35:02.043Z","dependency_job_id":null,"html_url":"https://github.com/rootfs/candle-bert-go","commit_stats":null,"previous_names":["rootfs/candle-bert-go"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rootfs/candle-bert-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootfs%2Fcandle-bert-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootfs%2Fcandle-bert-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootfs%2Fcandle-bert-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootfs%2Fcandle-bert-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rootfs","download_url":"https://codeload.github.com/rootfs/candle-bert-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootfs%2Fcandle-bert-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32466333,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: 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":["bert","bert-model","golang","rust"],"created_at":"2025-04-13T14:19:16.521Z","updated_at":"2026-04-30T13:34:25.779Z","avatar_url":"https://github.com/rootfs.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Candle BERT Go\n\nGo bindings for the Candle machine learning framework to run BERT models with text classification capabilities.\n\n## Overview\n\nThis project provides Go bindings for the Candle machine learning framework, allowing you to:\n\n1. Load pre-trained BERT models\n2. Classify text into multiple categories\n3. Integrate into Go applications\n\n## Project Structure\n\n```\ncandle-bert-go/\n├── cmd/               # Go command-line applications\n│   └── bert/          # BERT text classification CLI\n├── examples/          # Example Go applications\n│   └── simple_classification.go  # Simple classification example\n├── pkg/               # Go packages\n│   └── classifier/    # Text classification library\n├── rust/              # Rust code for Candle bindings\n│   ├── src/           # Rust source files\n│   └── Cargo.toml     # Rust dependencies\n├── scripts/           # Build and utility scripts\n├── Makefile           # Build automation\n├── .gitignore         # Git ignore rules\n└── go.mod             # Go module definition\n```\n\n## Prerequisites\n\n- Go 1.21+\n- Rust and Cargo\n\n## Building\n\nYou can use the provided Makefile for easy building:\n\n```bash\n# Build both Rust and Go components\nmake\n\n# Build only the Rust library\nmake rust\n\n# Build only the Go application  \nmake go\n\n# Build example applications\nmake examples\n```\n\n## Running\n\nUsing the Makefile:\n\n```bash\n# Run the main application\nmake run\n\n# Run the simple classification example\nmake run-example\n```\n\n## Using as a Library\n\nYou can use this package as a library in your own Go applications:\n\n```go\nimport \"github.com/rootfs/candle-bert-go/pkg/classifier\"\n\n// Initialize the BERT model\nsuccess := classifier.InitBert(\"sentence-transformers/all-MiniLM-L6-v2\", 3, true)\n\n// Classify text\nclassIdx := classifier.ClassifyText(\"Your text to classify\")\n\n// Get readable class name\nclassName := classifier.GetClassName(classIdx)\n```\n\nSee the `examples/` directory for more examples.\n\n## Cleaning Up\n\n```bash\nmake clean\n```\n\n## Additional Makefile Commands\n\n- `make test` - Run tests\n- `make install` - Install to GOPATH/bin\n- `make docs` - Generate documentation\n- `make help` - Show help information\n\n## License\n\nMIT or Apache 2.0 license.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frootfs%2Fcandle-bert-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frootfs%2Fcandle-bert-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frootfs%2Fcandle-bert-go/lists"}