https://github.com/siddharthvp/summary-generator
Wikipedia article summary generator
https://github.com/siddharthvp/summary-generator
Last synced: about 2 months ago
JSON representation
Wikipedia article summary generator
- Host: GitHub
- URL: https://github.com/siddharthvp/summary-generator
- Owner: siddharthvp
- License: mit
- Created: 2020-05-21T10:56:10.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T20:02:11.000Z (about 2 years ago)
- Last Synced: 2025-02-12T07:30:24.885Z (4 months ago)
- Language: JavaScript
- Size: 65.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# summary-generator
Wikipedia article summary generatorHosted on https://summary-generator.toolforge.org, though at the moment the UI just sucks.
An API endpoint is available at https://summary-generator.toolforge.org/summary, which takes upto 4 parameters
- article - name of an article on English Wikipedia,
- wikitext - wikitext to generate extract from (specify either `article` or `extract`)
- charLimit - limit the extract to this many characters, or till wherever the sentence ends past this limit.
- hardUpperLimit - a hard upper limit on the number of characters. The extract will be cut off even if the currect sentence hasn't ended. Ellipsis (...) will be added at the end to indicate this.Sample API request: https://summary-generator.toolforge.org/summary?article=Barack_Obama&charLimit=250&hardUpperLimit=500
The parameters may be sent via GET or POST -- both are supported.