mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +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
|
||||
| After training your model, you'll usually want to save its state, and load
|
||||
| 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:
|
||||
|
||||
+code.
|
||||
nlp.save_to_directory('/home/me/data/en_example_model')
|
||||
nlp.to_disk('/home/me/data/en_example_model')
|
||||
|
||||
p
|
||||
| The directory will be created if it doesn't exist, and the whole pipeline
|
||||
|
|
Loading…
Reference in New Issue
Block a user