Skip to content

Commit

Permalink
Merge pull request #183 from DerwenAI/update
Browse files Browse the repository at this point in the history
resolve unit test for summarization #182
  • Loading branch information
ceteri authored Jul 17, 2021
2 parents 42e556b + a84581b commit ef48ec7
Show file tree
Hide file tree
Showing 15 changed files with 479 additions and 184 deletions.
6 changes: 4 additions & 2 deletions changelog.txt → CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# PyTextRank changelog

## 3.1.2
## 3.2.0

2021-07-??
2021-07-17

* **NB: THIS SCRUBBER UPDATE WILL BREAK PREVIOUS RELEASES**
* allow `Span` as scrubber argument, to align with `spaCy` 3.1.x; kudos @Ankush-Chander
* add `lgtm` code reviews (slow, not integrating into GitHub PRs directly)
* evaluating `grayskull` to generate a conda-forge recipe
* add use of `pipdeptree` to analyze dependencies
Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
include README.md
include changelog.txt
include CHANGELOG.md

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ will track with the major release number of the associated <code>spaCy</code>
version.

See:
[changelog.txt](https://github.com/DerwenAI/pytextrank/blob/main/changelog.txt)
[CHANGELOG.md](https://github.com/DerwenAI/pytextrank/blob/main/CHANGELOG.md)
</details>

<img
Expand Down
6 changes: 6 additions & 0 deletions docs/apidocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apidocs:
page: ref.md
template: ref.jinja
package: pytextrank
git: https://github.com/DerwenAI/pytextrank/blob/main
includes: BaseTextRankFactory, BaseTextRank, PositionRankFactory, PositionRank, BiasedTextRankFactory, BiasedTextRank, Lemma, Phrase, Sentence, VectorElem
45 changes: 45 additions & 0 deletions docs/ref.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Package Reference: `{{ groups.package[0].package }}`
{{ groups.package[0].docstring }}

{% for class_name, class_item in groups.package[0].class.items() %}
## [`{{ class_name }}` class](#{{ class_name }})
{{ class_item.docstring | safe }}

{% for method_name, method_item in class_item.method.items() %}
---
#### [`{{ method_name }}` method](#{{ method_item.ns_path }})
[*\[source\]*]({{ groups.package[0].git_url }}{{ method_item.file }}#L{{ method_item.line_num }})

```python
{{ method_name }}({{ method_item.arg_list_str | safe }})
```
{{ method_item.docstring | safe }}
{{ method_item.arg_docstring | safe }}
{% endfor %}
{% endfor %}

---
## [module functions](#{{ groups.package[0].package }}_functions)

{% for func_name, func_item in groups.package[0].function.items() %}
---
#### [`{{ func_name }}` method](#{{ func_item.ns_path }})
[*\[source\]*]({{ groups.package[0].git_url }}{{ func_item.file }}#L{{ func_item.line_num }})

```python
{{ func_name }}({{ func_item.arg_list_str | safe }})
```
{{ func_item.docstring | safe }}
{{ func_item.arg_docstring | safe }}
{% endfor %}

---
## [module types](#{{ groups.package[0].package }}_types)

{% for type_name, type_item in groups.package[0].type.items() %}
#### [`{{ type_name }}` type](#{{ type_item.ns_path }})
```python
{{ type_name }} = {{ type_item.obj | safe }}
```
{{ type_item.docstring | safe }}
{% endfor %}
Loading

0 comments on commit ef48ec7

Please sign in to comment.