{"id":19620489,"url":"https://github.com/jianlins/fastcontext","last_synced_at":"2025-04-28T03:32:04.689Z","repository":{"id":81302297,"uuid":"89171699","full_name":"jianlins/FastContext","owner":"jianlins","description":"FastContext is an optimized Java implementation of ConText algorithm (https://www.ncbi.nlm.nih.gov/pubmed/23920642).","archived":false,"fork":false,"pushed_at":"2021-10-19T20:48:11.000Z","size":257,"stargazers_count":11,"open_issues_count":0,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-05T05:51:07.973Z","etag":null,"topics":["context-detection","java","nlp"],"latest_commit_sha":null,"homepage":null,"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/jianlins.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,"governance":null}},"created_at":"2017-04-23T20:50:32.000Z","updated_at":"2024-04-04T08:57:58.000Z","dependencies_parsed_at":"2023-06-26T23:17:08.688Z","dependency_job_id":null,"html_url":"https://github.com/jianlins/FastContext","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jianlins%2FFastContext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jianlins%2FFastContext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jianlins%2FFastContext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jianlins%2FFastContext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jianlins","download_url":"https://codeload.github.com/jianlins/FastContext/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251246147,"owners_count":21558759,"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":["context-detection","java","nlp"],"created_at":"2024-11-11T11:18:12.064Z","updated_at":"2025-04-28T03:32:04.383Z","avatar_url":"https://github.com/jianlins.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastContext\n\nFastContext is an optimized Java implementation of ConText algorithm (https://www.ncbi.nlm.nih.gov/pubmed/23920642). It runs two orders of magnitude faster and more accurate than previous two popluar implementations: [JavaConText](https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/negex/JavaConText.zip) and [GeneralConText](https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/negex/GeneralConText.Java.v.1.0_10272010.zip).\n\n## Maven dependency set up\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003eedu.utah.bmi.nlp\u003c/groupId\u003e\n  \u003cartifactId\u003efastcontext\u003c/artifactId\u003e\n  \u003cversion\u003e1.3.1.9\u003c/version\u003e\n\u003c/dependency\u003e\n```\nNote: the maven distribution doesn't include the context rule file, you can download it [here](https://github.com/jianlins/FastContext/blob/master/conf/context.csv) if needed.\n## Quick start\n```java\n// Initiate FastContext\nFastContext fc = new FastContext(\"conf/context.csv\");\nString inputString = \"The patient denied any fever , although he complained some headache .\";\nArrayList\u003cSpan\u003e sent = SimpleParser.tokenizeOnWhitespaces(inputString);\nLinkedHashMap\u003cString, ConTextSpan\u003e matches = fc.getFullContextFeatures(\"Concept\", sent, 4, 4, inputString);\n// To find the context information of \"fever\"\n```\nFor more detailed API uses, please refer to [TestFastContextAPIs.java](https://github.com/jianlins/FastContext/blob/master/src/test/java/edu/utah/bmi/nlp/fastcontext/TestFastContextAPIs.java)\n\n## Acknowledgement\nSpecial thanks to Olga Patterson and Guy Divita for contributing rules as part of the context rule set.\n\n## Citation\nIf you are using FastContext within your research work, please cite the following publication:\n``` \nShi, Jianlin, and John F. Hurdle. “Trie-Based Rule Processing for Clinical NLP: A Use-Case Study of n-Trie, Making the ConText Algorithm More Efficient and Scalable.” Journal of Biomedical Informatics, August 6, 2018. https://doi.org/10.1016/j.jbi.2018.08.002.\n```\n\nFull text are available at: \nhttps://www.sciencedirect.com/science/article/pii/S1532046418301576\n\nPreprint:\nhttps://arxiv.org/abs/1905.00079\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjianlins%2Ffastcontext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjianlins%2Ffastcontext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjianlins%2Ffastcontext/lists"}