Skip to content

Commit 42821d3

Browse files
committed
docs: update install instructions for mac users
1 parent bdf608a commit 42821d3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The initial version of this package was developed by [Patrick Littell](https://g
4141

4242
## Install
4343

44-
The best thing to do is install with pip `pip install g2p`.
44+
The best thing to do is install with pip `pip install g2p` or `pip install "g2p[neural]"` to install the optional neural dependencies.
4545
This command will install the latest release published on [PyPI g2p releases](https://pypi.org/project/g2p/).
4646

4747
You can also use [hatch](https://hatch.pypa.io/latest/) (see [hatch
@@ -164,7 +164,7 @@ transducer('cad') # returns "cbd"
164164

165165
### Neural G2P models
166166

167-
The main functionality of this library is to provide lightweight, index-preserving g2p for many languages. However, we also support some neural g2p models. These can be accessed by first installing the necessary neural packages with `pip install g2p[neural]`. Then, when creating a g2p object, add the neural flag like so:
167+
The main functionality of this library is to provide lightweight, index-preserving g2p for many languages. However, we also support some neural g2p models. These can be accessed by first installing the necessary neural packages with `pip install "g2p[neural]"`. Then, when creating a g2p object, add the neural flag like so:
168168

169169
```python
170170
>>> neural_transducer = make_g2p('str', 'str-ipa', neural=True)

0 commit comments

Comments
 (0)