{"id":23757397,"url":"https://github.com/sedflix/deepcoherence","last_synced_at":"2026-03-13T11:32:35.918Z","repository":{"id":139667428,"uuid":"138846219","full_name":"sedflix/DeepCoherence","owner":"sedflix","description":"(most probably incorrect implementation of) Text Coherence Analysis Based on Deep Neural Network","archived":false,"fork":false,"pushed_at":"2019-05-18T12:57:41.000Z","size":9956,"stargazers_count":24,"open_issues_count":3,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-13T08:50:14.118Z","etag":null,"topics":["coherence-analysis","deep-coherence-model","deep-learning","machine-learning","natural-language-processing","sentence-odering","text-coherence"],"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/sedflix.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":"2018-06-27T07:33:39.000Z","updated_at":"2022-11-02T09:44:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"91634a89-8932-48dc-b2a3-7e6f9764abd9","html_url":"https://github.com/sedflix/DeepCoherence","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sedflix/DeepCoherence","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sedflix%2FDeepCoherence","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sedflix%2FDeepCoherence/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sedflix%2FDeepCoherence/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sedflix%2FDeepCoherence/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sedflix","download_url":"https://codeload.github.com/sedflix/DeepCoherence/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sedflix%2FDeepCoherence/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30466314,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T11:00:43.441Z","status":"ssl_error","status_checked_at":"2026-03-13T11:00:23.173Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["coherence-analysis","deep-coherence-model","deep-learning","machine-learning","natural-language-processing","sentence-odering","text-coherence"],"created_at":"2024-12-31T19:46:49.190Z","updated_at":"2026-03-13T11:32:35.904Z","avatar_url":"https://github.com/sedflix.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DeepCoherence\n\nIt is kind of based on [**Text Coherence Analysis Based on Deep Neural Network**](https://arxiv.org/abs/1710.07770)  \nby *Baiyun Cui, Yingming Li, Yaqing Zhang, Zhongfei Zhang*\n\nBased on the origial data provied by [Baiyun Cui](mailto:baiyunc@yahoo.com) \n\n## Usage \n\n## Download the code\n\n```\ngit https://github.com/geekSiddharth/DeepCoherence.git\ncd DeepCoherence\n```\n\n## Download the glove embedding \n\nDownload the embeddings using `download.sh` script\n\n```\n$/DeepCoherence\u003e sh download.sh\n$/DeepCoherence\u003e ls -sh glove/\ntotal 2.1G\n332M glove.6B.100d.txt  662M glove.6B.200d.txt  990M glove.6B.300d.txt  164M glove.6B.50d.txt\n```\n## Environment\n\n### With docker/nvidia-docker\n\nMake sure you have Docker installed on your system.\n\n#### Building the image\n\n```\ndocker build -t coherence .\n```\n\n#### Start a container\n\n```\nsudo docker run -it -v \"$PWD\":/src coherence\n```\n\n##### For GPU user:\n- Use **nvidia-docker** instead of docker for building and running the image \n\n### With pip\n\n- After that you can install the required packages using:\n```\npip install  -r requirements.txt\n```\n\n## Pre-processing and training\n\n### Preprocess data\n\nBased on script and data provided by Baiyun Cui. It reads data from data2 folder and stores it in processed folder\n```\n$/DeepCoherence\u003e cd data/cui\n$/cui\u003e python data_preprocess.py \n```\n### Training\n\nYou can change the model info in `model.py`(Like hidden dimension, max sequence length, filter size etc ) and training info(like batch sizes, epoch etc) in `train.py`\n```\n$/DeepCoherence\u003e python train.py\n```\n\n## Predict\n\nOpen `predict.py`, and add file path of  model_weight_file and enter the input sentences and then\n```\n$/DeepCoherence\u003e python predcit.py\n```\n\n### Details about the dataset:\n\ndata/training 100: original train documents for accident dataset\n    /testing 100:  original test documents for accident dataset\n\ndata2: original train/dev/test and their permutations for accident dataset\ndata3: original train/dev/test and their permutations for earthquake dataset.\n\n- accident dataset as an example to run the code.\n\n\n## Citing \n\n```\n@article{DBLP:journals/corr/abs-1710-07770,\n  author    = {Baiyun Cui and\n               Yingming Li and\n               Yaqing Zhang and\n               Zhongfei Zhang},\n  title     = {Text Coherence Analysis Based on Deep Neural Network},\n  journal   = {CoRR},\n  volume    = {abs/1710.07770},\n  year      = {2017},\n  url       = {http://arxiv.org/abs/1710.07770},\n  archivePrefix = {arXiv},\n  eprint    = {1710.07770},\n  timestamp = {Wed, 01 Nov 2017 19:05:42 +0100},\n  biburl    = {https://dblp.org/rec/bib/journals/corr/abs-1710-07770},\n  bibsource = {dblp computer science bibliography, https://dblp.org}\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsedflix%2Fdeepcoherence","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsedflix%2Fdeepcoherence","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsedflix%2Fdeepcoherence/lists"}