forked from matiasb/nlg4patch
Software patches verbalization
License
DrDub/nlg4patch
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
NLG4Patch --------- The goal of this project is to generate from a (unified) diff input, a natural language description of the changes implied by the patch. >>> from nlg4patch.unidiff import parse_unidiff >>> from nlg4patch.planner import content_planning >>> from nlg4patch.microplanner import microplanning >>> >>> with open('sample.diff') as f: >>> patch_info = parse_unidiff(f) >>> plan = content_planning(patch_info) >>> micro = microplanning(plan) >>> for p in micro: >>> print p.realise() There is 1 modified file from 1 directory. All changes are summarized in 10 additions, 6 deletions and 2 modifications. There is 1 updated file in directory /path/to and it has no extension. All changes are summarized in 10 additions, 6 deletions and 2 modifications.
About
Software patches verbalization
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Python 100.0%