You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Working on the documentation](#working-on-the-documentation)
25
+
-[Code Contributions](#code-contributions)
26
+
-[Submit an issue](#submit-an-issue)
27
+
-[Create an environment](#create-an-environment)
28
+
-[Clone the repository](#clone-the-repository)
29
+
-[Implement your changes](#implement-your-changes)
30
+
-[Submit your contribution](#submit-your-contribution)
31
+
-[Troubleshooting](#troubleshooting)
32
+
-[Maintainer tasks](#maintainer-tasks)
33
+
-[Releases](#releases)
34
+
35
+
---
36
+
44
37
## Issue Reports
45
38
46
39
If you experience bugs or general issues with `textsum`, please have a look
@@ -62,47 +55,43 @@ you help us to identify the root cause of the issue.
62
55
## Documentation Improvements
63
56
64
57
You can help improve `textsum` docs by making them more readable and coherent, or
65
-
by adding missing information and correcting mistakes.
58
+
by adding missing information and correcting mistakes. Currently, this is easy as there is no official documentation. The README.md file is the only documentation, outside of the [wiki]. If you want to improve it, please do so and submit a pull request.
66
59
67
-
`textsum` documentation uses [Sphinx] as its main documentation compiler.
68
-
This means that the docs are kept in the same repository as the project code, and
69
-
that any documentation update is done in the same way was a code contribution.
60
+
### creating pyscaffold-compatible documentation
70
61
71
-
```{todo} Don't forget to mention which markup language you are using.
62
+
First, install [pyscaffoldext-markdown] and [pyscaffoldext-sphinx] extensions (as well as all other extensions):
72
63
73
-
e.g., [reStructuredText] or [CommonMark] with [MyST] extensions.
64
+
```bash
65
+
pip install pyscaffold[all]
74
66
```
75
67
76
-
```{todo} If your project is hosted on GitHub, you can also mention the following tip:
77
-
78
-
:::{tip}
79
-
Please notice that the [GitHub web interface] provides a quick way of
80
-
propose changes in `textsum`'s files. While this mechanism can
81
-
be tricky for normal code contributions, it works perfectly fine for
82
-
contributing to the docs, and can be quite handy.
83
-
84
-
If you are interested in trying this method out, please navigate to
85
-
the `docs` folder in the source [repository], find which file you
86
-
would like to propose changes and click in the little pencil icon at the
87
-
top, to open [GitHub's code editor]. Once you finish editing the file,
88
-
please write a message in the form at the bottom of the page describing
89
-
which changes have you made and what are the motivations behind them and
90
-
submit your proposal.
91
-
:::
68
+
Then, clone this repo and update the documentation:
69
+
70
+
```bash
71
+
git clone https://github.com/pszemraj/textsum.git
72
+
putup textsum --force --markdown
92
73
```
93
74
75
+
This will create a new directory `docs` with the documentation. You can now edit the files in `docs` and commit the changes.
76
+
77
+
### Working on the documentation
78
+
94
79
When working on documentation changes in your local machine, you can
95
80
compile them using [tox] :
96
81
97
82
```
83
+
98
84
tox -e docs
85
+
99
86
```
100
87
101
88
and use Python's built-in web server for a preview in your web browser
[creating a pr]: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request
> utility for using transformers summarization models on text docs
16
23
17
-
The purpose of this package is to provide a simple interface (python API, CLI, gradio web UI) for using summarization models on text documents of arbitrary length.
24
+
This package is to provides easy-to-use interfaces for using summarization models on text documents of arbitrary length. Currently implemented interfaces include a python API, CLI, and a shareable demo app.
25
+
26
+
For details, explanations, and docs, see the [wiki](https://github.com/pszemraj/textsum/wiki)
27
+
28
+
⚠️ _This is a WIP, but general functionality is available_ ⚠️
29
+
30
+
---
18
31
19
-
⚠️ **WARNING**: _This package is a WIP and is not ready for production use. Some things may not work yet._ ⚠️
32
+
-[textsum](#textsum)
33
+
-[Installation](#installation)
34
+
-[Full Installation](#full-installation)
35
+
-[Additional Details](#additional-details)
36
+
-[Usage](#usage)
37
+
-[Python API](#python-api)
38
+
-[CLI](#cli)
39
+
-[Demo App](#demo-app)
40
+
-[Contributing](#contributing)
41
+
-[Roadmap](#roadmap)
42
+
43
+
---
20
44
21
45
## Installation
22
46
@@ -27,7 +51,7 @@ Install using pip:
27
51
pip install textsum
28
52
```
29
53
30
-
The `textsum` package is now installed in your virtual environment. You can now use the CLI or python API to summarize text docs see the [Usage](#usage) section for more details.
54
+
The `textsum` package is now installed in your virtual environment. CLI commands/python API can be summarize text docs from anywhere. see the [Usage](#usage) section for more details.
31
55
32
56
### Full Installation
33
57
@@ -125,6 +149,12 @@ This will start a local server that you can access in your browser & a shareable
125
149
126
150
---
127
151
152
+
## Contributing
153
+
154
+
Contributions are welcome! Please open an issue or PR if you have any ideas or suggestions.
155
+
156
+
See the [CONTRIBUTING.md](CONTRIBUTING.md) file for details on how to contribute.
157
+
128
158
## Roadmap
129
159
130
160
-[x] add CLI for summarization of all text files in a directory
@@ -133,6 +163,7 @@ This will start a local server that you can access in your browser & a shareable
0 commit comments