mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-05 04:40:20 +03:00
Fix formatting
This commit is contained in:
parent
baa8ae4d51
commit
1e28ce8c82
|
@ -149,7 +149,7 @@ prompting.
|
||||||
> ```
|
> ```
|
||||||
|
|
||||||
| Argument | Description |
|
| Argument | Description |
|
||||||
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `template` | Custom prompt template to send to LLM model. Default templates for each task are located in the `spacy_llm/tasks/templates` directory. Defaults to [summarization.jinja](./spacy_llm/tasks/templates/summarization.jinja). ~~str~~ |
|
| `template` | Custom prompt template to send to LLM model. Default templates for each task are located in the `spacy_llm/tasks/templates` directory. Defaults to [summarization.jinja](./spacy_llm/tasks/templates/summarization.jinja). ~~str~~ |
|
||||||
| `examples` | Optional function that generates examples for few-shot learning. Defaults to `None`. ~~Optional[Callable[[], Iterable[Any]]]~~ |
|
| `examples` | Optional function that generates examples for few-shot learning. Defaults to `None`. ~~Optional[Callable[[], Iterable[Any]]]~~ |
|
||||||
| `max_n_words` | Maximum number of words to be used in summary. Note that this should not expected to work exactly. Defaults to `None`. ~~Optional[int]~~ |
|
| `max_n_words` | Maximum number of words to be used in summary. Note that this should not expected to work exactly. Defaults to `None`. ~~Optional[int]~~ |
|
||||||
|
@ -170,11 +170,9 @@ reader `spacy.FewShotReader.v1` supports `.yml`, `.yaml`, `.json` and `.jsonl`.
|
||||||
The United Nations, referred to informally as the UN, is an
|
The United Nations, referred to informally as the UN, is an
|
||||||
intergovernmental organization whose stated purposes are to maintain
|
intergovernmental organization whose stated purposes are to maintain
|
||||||
international peace and security, develop friendly relations among nations,
|
international peace and security, develop friendly relations among nations,
|
||||||
achieve international
|
achieve international cooperation, and serve as a centre for harmonizing the
|
||||||
|
actions of nations. It is the world's largest international organization.
|
||||||
cooperation, and serve as a centre for harmonizing the actions of nations.
|
The UN is headquartered on international territory in New York City, and the
|
||||||
It is the world's largest international organization. The UN is
|
|
||||||
headquartered on international territory in New York City, and the
|
|
||||||
organization has other offices in Geneva, Nairobi, Vienna, and The Hague,
|
organization has other offices in Geneva, Nairobi, Vienna, and The Hague,
|
||||||
where the International Court of Justice is headquartered.\n\n The UN was
|
where the International Court of Justice is headquartered.\n\n The UN was
|
||||||
established after World War II with the aim of preventing future world wars,
|
established after World War II with the aim of preventing future world wars,
|
||||||
|
@ -434,7 +432,7 @@ definitions are included in the prompt.
|
||||||
> ```
|
> ```
|
||||||
|
|
||||||
| Argument | Description |
|
| Argument | Description |
|
||||||
| ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `labels` | List of labels or str of comma-separated list of labels. ~~Union[List[str], str]~~ |
|
| `labels` | List of labels or str of comma-separated list of labels. ~~Union[List[str], str]~~ |
|
||||||
| `label_definitions` | Dictionary of label definitions. Included in the prompt, if set. Defaults to `None`. ~~Optional[Dict[str, str]]~~ |
|
| `label_definitions` | Dictionary of label definitions. Included in the prompt, if set. Defaults to `None`. ~~Optional[Dict[str, str]]~~ |
|
||||||
| `template` | Custom prompt template to send to LLM model. Default templates for each task are located in the `spacy_llm/tasks/templates` directory. Defaults to [`textcat.jinja`](https://github.com/spacy-llm/spacy_llm/tasks/templates/textcat.jinja). ~~str~~ |
|
| `template` | Custom prompt template to send to LLM model. Default templates for each task are located in the `spacy_llm/tasks/templates` directory. Defaults to [`textcat.jinja`](https://github.com/spacy-llm/spacy_llm/tasks/templates/textcat.jinja). ~~str~~ |
|
||||||
|
|
Loading…
Reference in New Issue
Block a user