Skip to content

Commit 2a0f3b7

Browse files
authored
chore: Fix spelling (#459)
Fixes misspellings identified by the [check-spelling action](https://github.com/marketplace/actions/check-spelling). The misspellings have been reported at https://github.com/jsoref/unstructured-api/actions/runs/10822287753#summary-30025895524 The action will report that the changes in this PR would make it happy: https://github.com/jsoref/unstructured-api/actions/runs/10822287924#summary-30025895935 --------- Signed-off-by: Josh Soref <[email protected]>
1 parent 456bb9b commit 2a0f3b7

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
## 0.0.56
123123
* **Add `max_characters` param for chunking** This param gives users additional control to "chunk" elements into larger or smaller `CompositeElement`s
124124
* Bump unstructured to 0.10.28
125-
* Make sure chipperv2 is called whien `hi_res_model_name==chipper`
125+
* Make sure chipperv2 is called when `hi_res_model_name==chipper`
126126

127127

128128
## 0.0.55
@@ -164,7 +164,7 @@
164164

165165
## 0.0.48
166166

167-
* **Adds `languages` kwarg** `ocr_languages` will eventually be deprecated and replaced by `lanugages` to specify what languages to use for OCR
167+
* **Adds `languages` kwarg** `ocr_languages` will eventually be deprecated and replaced by `languages` to specify what languages to use for OCR
168168
* Adds a startup log and other minor cleanups
169169

170170
## 0.0.47
@@ -215,7 +215,7 @@
215215

216216
## 0.0.39
217217

218-
* Fix wrong handleing on param skip_infer_table_types
218+
* Fix incorrect handling on param skip_infer_table_types
219219
* Pin `safetensors` to fix a build error with 0.0.38
220220

221221
## 0.0.38

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ By default server will run for indefinitely. To change that the `MAX_LIFETIME_SE
389389

390390
After the graceful period is over if server is still running, it is shutdown forcefully, cancelling all active requests and sending empty responses to each of them.
391391

392-
*Max lifetime requires gnu [timeout](https://www.gnu.org/software/coreutils/manual/html_node/timeout-invocation.html#timeout-invocation) to be installed, available by default on most linux systems. Downloadable on MacOS as gtimeout with gnu coreutils.*
392+
*Max lifetime requires gnu [timeout](https://www.gnu.org/software/coreutils/manual/html_node/timeout-invocation.html#timeout-invocation) to be installed, available by default on most linux systems. Downloadable on macOS as gtimeout with gnu coreutils.*
393393

394394
## :dizzy: Instructions for using the Docker image
395395

@@ -425,8 +425,8 @@ information on how to report security vulnerabilities.
425425

426426
| Section | Description |
427427
|-|-|
428-
| [Unstructured Community Github](https://github.com/Unstructured-IO/community) | Information about Unstructured.io community projects |
429-
| [Unstructured Github](https://github.com/Unstructured-IO) | Unstructured.io open source repositories |
428+
| [Unstructured Community GitHub](https://github.com/Unstructured-IO/community) | Information about Unstructured.io community projects |
429+
| [Unstructured GitHub](https://github.com/Unstructured-IO) | Unstructured.io open source repositories |
430430
| [Company Website](https://unstructured.io) | Unstructured.io product and company info |
431431

432432
## :chart_with_upwards_trend: Analytics

prepline_general/api/general.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def partition_file_via_api(
136136
The remote url is set by the `UNSTRUCTURED_PARALLEL_MODE_URL` environment variable.
137137
138138
Args:
139-
`file_tuple` is a file-like object and byte offset of a page (file, page_offest)
139+
`file_tuple` is a file-like object and byte offset of a page (file, page_offset)
140140
`request` is used to forward the api key header
141141
`filename` and `content_type` are passed in the file form data
142142
`partition_kwargs` holds any form parameters to be sent on
@@ -674,7 +674,7 @@ def general_partition(
674674
# cannot use annotated type here because of a bug described here:
675675
# https://github.com/tiangolo/fastapi/discussions/10280
676676
# The openapi metadata must be added separately in openapi.py file.
677-
# TODO: Check if the bug is fixed and change the declaration to use Annoteted[List[UploadFile], File(...)]
677+
# TODO: Check if the bug is fixed and change the declaration to use Annotated[List[UploadFile], File(...)]
678678
# For new parameters - add them in models/form_params.py
679679
files: List[UploadFile],
680680
form_params: GeneralFormParams = Depends(GeneralFormParams.as_form),

prepline_general/api/openapi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ def _apply_customizations(openapi_schema: dict[str, Any]) -> None:
7171
}
7272
}
7373

74-
# TODO: Instead of a list of paramaters, crete a PartitionParameters model
74+
# TODO: Instead of a list of parameters, crete a PartitionParameters model
7575
# and declare schema keys (type, format, description) as attributes
7676
# https://fastapi.tiangolo.com/reference/openapi/models/?h=model
77-
# Update the schema key from `Body_partition` to `partition_paramaters`
77+
# Update the schema key from `Body_partition` to `partition_parameters`
7878

7979
# TODO: Similarly, create an Element model
8080
# https://fastapi.tiangolo.com/reference/openapi/models/?h=model

requirements/base.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ click==8.1.3
77
# NOTE(robinson) - fastapi>=0.114.0 causes the test listed below to fail, though it
88
# works if data if chunking strategy and new_after_n_chars are explicitly set. Pinning
99
# for now to preserve behavior
10-
# test_parallel_mode_preserves_uniqueness_of_hashes_when_asssembling_page_splits
10+
# test_parallel_mode_preserves_uniqueness_of_hashes_when_assembling_page_splits
1111
fastapi<0.114.0
1212
uvicorn
1313
ratelimit

test_general/api/test_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ def test_chunking_strategy_param():
874874

875875

876876
# Defaults:
877-
# multippage = True, combine_text_under_n_chars = None, new_after_n_chars = None,
877+
# multipage = True, combine_text_under_n_chars = None, new_after_n_chars = None,
878878
# max_characters = 500
879879
@pytest.mark.parametrize(
880880
("multipage_sections", "combine_under_n_chars", "new_after_n_chars", "max_characters"),

0 commit comments

Comments
 (0)