{"id":13653089,"url":"https://github.com/himkt/allennlp-NER","last_synced_at":"2025-04-23T06:31:05.037Z","repository":{"id":56080309,"uuid":"266158298","full_name":"himkt/allennlp-NER","owner":"himkt","description":"☯️   AllenNLP training configurations for promising models on Named Entity Recognition. (BiLSTM-CRF, BiLSTM-CNN-CRF, BERT, BERT-CRF)","archived":false,"fork":false,"pushed_at":"2020-11-26T16:09:32.000Z","size":156,"stargazers_count":15,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-09T10:52:12.014Z","etag":null,"topics":["allennlp","bert","named-entity-recognition","natural-language-processing","ner"],"latest_commit_sha":null,"homepage":"","language":"Python","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/himkt.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}},"created_at":"2020-05-22T16:32:15.000Z","updated_at":"2024-03-31T17:07:22.000Z","dependencies_parsed_at":"2022-08-15T12:50:14.180Z","dependency_job_id":null,"html_url":"https://github.com/himkt/allennlp-NER","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/himkt%2Fallennlp-NER","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himkt%2Fallennlp-NER/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himkt%2Fallennlp-NER/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himkt%2Fallennlp-NER/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/himkt","download_url":"https://codeload.github.com/himkt/allennlp-NER/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250384821,"owners_count":21421798,"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":["allennlp","bert","named-entity-recognition","natural-language-processing","ner"],"created_at":"2024-08-02T02:01:05.727Z","updated_at":"2025-04-23T06:31:02.944Z","avatar_url":"https://github.com/himkt.png","language":"Python","funding_links":[],"categories":["Framework"],"sub_categories":[],"readme":"# AllenNLP NER: AllenNLP Models for Named Entity Recognition\n\n## Installation\n\nAllenNLP NER uses `poetry` for library management.\nIf you don't have `poetry`, please run `pip3 install poetry`.\n\n```\ngit clone git@github.com:himkt/allennlp_ner \u0026\u0026 cd allennlp_ner\npoetry install\n```\n\n## Run model training\n\n```\npoetry run allennlp train config/bert.jsonnet --include-pacakge allennlp_ner -s model/bert\npoetry run allennlp train config/bert-crf.jsonnet -s model/bert-crf\npoetry run allennlp train config/bilstm-crf.jsonnet -s model/bilstm-crf\npoetry run allennlp train config/bilstm-cnn-crf.jsonnet -s model/bilstm-cnn-crf\n```\n\n## [New!] Hyperparameter Optimization\n\nYou can try hyperparameter optimization for BiLSTM-CNN-CRF!\nIt uses [Optuna](https://github.com/optuna/optuna), please read [AllenNLP guide](https://guide.allennlp.org/hyperparameter-optimization) if you want to learn more.\n\n```\npoetry run python hpo.py\n```\n\nOr, you can also use [`allennlp-optuna`](https://github.com/himkt/allennlp-optuna).\n\n```\npoetry run allennlp tune \\\n  config/bilstm-cnn-crf-hpo.jsonnet  \\\n  config/bilstm-cnn-crf.hparams.json \\\n  --serialization-dir result \\\n  --metrics best_validation_f1-measure-overall \\\n  --direction maximize\n```\n\n\n\n## References\n\n- [BiLSTM-CRF](./config/bilstm-crf.jsonnet) [Lample+, NAACL2016]: https://www.aclweb.org/anthology/N16-1030/\n- [BiLSTM-CNN-CRF](./config/bilstm-cnn-crf.jsonnet) [Ma+, ACL2016]: https://www.aclweb.org/anthology/P16-1101/\n- [BERT](./config/bert.jsonnet) [Devlin+, NAACL2019]: https://www.aclweb.org/anthology/N19-1423/\n- [BERT-CRF](./config/bert-crf.jsonnet) [Devlin+, NAACL2019]: https://www.aclweb.org/anthology/N19-1423/ + CRF\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhimkt%2Fallennlp-NER","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhimkt%2Fallennlp-NER","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhimkt%2Fallennlp-NER/lists"}