mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-13 13:17:06 +03:00
Change save_to_directory to to_disk
This commit is contained in:
parent
c8bde2161c
commit
6ef09d7ed8
|
@ -3,11 +3,11 @@ include ../../_includes/_mixins
|
||||||
p
|
p
|
||||||
| After training your model, you'll usually want to save its state, and load
|
| After training your model, you'll usually want to save its state, and load
|
||||||
| it back later. You can do this with the
|
| it back later. You can do this with the
|
||||||
| #[+api("language#save_to_directory") #[code Language.save_to_directory()]]
|
| #[+api("language#to_disk") #[code Language.to_disk()]]
|
||||||
| method:
|
| method:
|
||||||
|
|
||||||
+code.
|
+code.
|
||||||
nlp.save_to_directory('/home/me/data/en_example_model')
|
nlp.to_disk('/home/me/data/en_example_model')
|
||||||
|
|
||||||
p
|
p
|
||||||
| The directory will be created if it doesn't exist, and the whole pipeline
|
| The directory will be created if it doesn't exist, and the whole pipeline
|
||||||
|
|
Loading…
Reference in New Issue
Block a user