mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
Proofreading
A few more small things in Usage.
This commit is contained in:
parent
aaf01689a1
commit
1c65b3b2c0
|
@ -17,7 +17,7 @@ spaCy is compatible with **64-bit CPython 3.6+** and runs on **Unix/Linux**,
|
|||
>
|
||||
> To help you make the transition from v2.x to v3.0, we've uploaded the old
|
||||
> website to [**v2.spacy.io**](https://v2.spacy.io/docs). To see what's changed
|
||||
> and how to migrate, see the guide on [v3.0 guide](/usage/v3).
|
||||
> and how to migrate, see the [v3.0 guide](/usage/v3).
|
||||
|
||||
## Quickstart {hidden="true"}
|
||||
|
||||
|
@ -176,7 +176,7 @@ to get the right commands for your platform and Python version.
|
|||
`sudo apt-get install build-essential python-dev git`
|
||||
- **macOS / OS X:** Install a recent version of
|
||||
[XCode](https://developer.apple.com/xcode/), including the so-called "Command
|
||||
Line Tools". macOS and OS X ship with Python and git preinstalled.
|
||||
Line Tools". macOS and OS X ship with Python and Git preinstalled.
|
||||
- **Windows:** Install a version of the
|
||||
[Visual C++ Build Tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/)
|
||||
or
|
||||
|
@ -369,7 +369,7 @@ This error may occur when running the `spacy` command from the command line.
|
|||
spaCy does not currently add an entry to your `PATH` environment variable, as
|
||||
this can lead to unexpected results, especially when using a virtual
|
||||
environment. Instead, spaCy adds an auto-alias that maps `spacy` to
|
||||
`python -m spacy]`. If this is not working as expected, run the command with
|
||||
`python -m spacy`. If this is not working as expected, run the command with
|
||||
`python -m`, yourself – for example `python -m spacy download en_core_web_sm`.
|
||||
For more info on this, see the [`download`](/api/cli#download) command.
|
||||
|
||||
|
@ -416,8 +416,8 @@ disk has some binary files that should not go through this conversion. When they
|
|||
do, you get the error above. You can fix it by either changing your
|
||||
[`core.autocrlf`](https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration)
|
||||
setting to `"false"`, or by committing a
|
||||
[`.gitattributes`](https://git-scm.com/docs/gitattributes) file] to your
|
||||
repository to tell git on which files or folders it shouldn't do LF-to-CRLF
|
||||
[`.gitattributes`](https://git-scm.com/docs/gitattributes) file to your
|
||||
repository to tell Git on which files or folders it shouldn't do LF-to-CRLF
|
||||
conversion, with an entry like `path/to/spacy/model/** -text`. After you've done
|
||||
either of these, clone your repository again.
|
||||
|
||||
|
|
|
@ -351,7 +351,7 @@ dropout = 0.2
|
|||
|
||||
<Infobox variant="warning">
|
||||
|
||||
Remember that it is best not to rely on any (hidden) default values, to ensure
|
||||
Remember that it is best not to rely on any (hidden) default values to ensure
|
||||
that training configs are complete and experiments fully reproducible.
|
||||
|
||||
</Infobox>
|
||||
|
|
|
@ -44,7 +44,7 @@ in the [models directory](/models).
|
|||
|
||||
Inflectional morphology is the process by which a root form of a word is
|
||||
modified by adding prefixes or suffixes that specify its grammatical function
|
||||
but do not changes its part-of-speech. We say that a **lemma** (root form) is
|
||||
but do not change its part-of-speech. We say that a **lemma** (root form) is
|
||||
**inflected** (modified/combined) with one or more **morphological features** to
|
||||
create a surface form. Here are some examples:
|
||||
|
||||
|
@ -290,7 +290,7 @@ import DisplaCyLong2Html from 'images/displacy-long2.html'
|
|||
Because the syntactic relations form a tree, every word has **exactly one
|
||||
head**. You can therefore iterate over the arcs in the tree by iterating over
|
||||
the words in the sentence. This is usually the best way to match an arc of
|
||||
interest — from below:
|
||||
interest – from below:
|
||||
|
||||
```python
|
||||
### {executable="true"}
|
||||
|
@ -399,7 +399,7 @@ for descendant in subject.subtree:
|
|||
Finally, the `.left_edge` and `.right_edge` attributes can be especially useful,
|
||||
because they give you the first and last token of the subtree. This is the
|
||||
easiest way to create a `Span` object for a syntactic phrase. Note that
|
||||
`.right_edge` gives a token **within** the subtree — so if you use it as the
|
||||
`.right_edge` gives a token **within** the subtree – so if you use it as the
|
||||
end-point of a range, don't forget to `+1`!
|
||||
|
||||
```python
|
||||
|
|
Loading…
Reference in New Issue
Block a user