Commit d65d40d 1 parent c2fffb8 commit d65d40d Copy full SHA for d65d40d
File tree 3 files changed +18
-12
lines changed
3 files changed +18
-12
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ def setup(app):
68
68
html_static_path = ["_static" ]
69
69
70
70
html_favicon = "_static/favicon_64x64.png"
71
- # html_logo = "_static/high-res-icon.png"
71
+ html_logo = "_static/high-res-icon.png"
72
72
html_theme_options = {
73
73
"icon" : {
74
74
"repo" : "fontawesome/brands/github" ,
@@ -77,7 +77,12 @@ def setup(app):
77
77
"site_url" : "https://github.com/lancedb/lance" ,
78
78
"repo_url" : "https://github.com/lancedb/lance" ,
79
79
"repo_name" : "Lance" ,
80
-
80
+ "features" : [
81
+ "navigation.expand" ,
82
+ # "navigation.tabs",
83
+ "content.tabs.link" ,
84
+ "content.code.copy" ,
85
+ ],
81
86
"social" : [
82
87
{
83
88
"icon" : "fontawesome/brands/github" ,
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ Preview releases receive the same level of testing as regular releases.
39
39
40
40
41
41
.. toctree ::
42
- :caption: Quickstart
42
+ :caption: Introduction
43
43
:maxdepth: 2
44
44
45
45
Quickstart <./notebooks/quickstart >
Original file line number Diff line number Diff line change @@ -14,24 +14,25 @@ It also supports configuring user dictionaries,
14
14
which makes it convenient for users to expand their own dictionaries without retraining the language models.
15
15
16
16
Language Models of Jieba
17
- ---------------
17
+ ------------------------
18
18
19
19
Downloading the Model
20
- ~~~~~~~~~~~
20
+ ~~~~~~~~~~~~~~~~~~~~~
21
21
22
22
.. code-block :: bash
23
+
23
24
python -m lance.download jieba
24
25
25
26
The language model is stored by default in `${LANCE_LANGUAGE_MODEL_HOME}/jieba/default `.
26
27
27
28
Using the Model
28
- ~~~~~~~~~~~
29
+ ~~~~~~~~~~~~~~~
29
30
30
31
.. code-block :: python
31
32
ds.create_scalar_index(" text" , " INVERTED" , base_tokenizer = " jieba/default" )
32
33
33
34
User Dictionaries
34
- ~~~~~~~~~~~
35
+ ~~~~~~~~~~~~~~~~~
35
36
Create a file named config.json in the root directory of the current model.
36
37
37
38
.. code-block :: json
@@ -46,10 +47,10 @@ Create a file named config.json in the root directory of the current model.
46
47
47
48
48
49
Language Models of Lindera
49
- ---------------
50
+ --------------------------
50
51
51
52
Downloading the Model
52
- ~~~~~~~~~~~
53
+ ~~~~~~~~~~~~~~~~~~~~~
53
54
54
55
.. code-block :: bash
55
56
@@ -60,14 +61,14 @@ Note that the language models of Lindera need to be compiled. Please install lin
60
61
The language model is stored by default in ${LANCE_LANGUAGE_MODEL_HOME}/lindera/[ipadic|ko-dic|unidic]
61
62
62
63
Using the Model
63
- ~~~~~~~~~~~
64
+ ~~~~~~~~~~~~~~~
64
65
65
66
.. code-block :: python
66
67
67
68
ds.create_scalar_index(" text" , " INVERTED" , base_tokenizer = " lindera/ipadic" )
68
69
69
70
User Dictionaries
70
- ~~~~~~~~~~~
71
+ ~~~~~~~~~~~~~~~~~
71
72
72
73
Create a file named config.json in the root directory of the current model.
73
74
@@ -84,7 +85,7 @@ Create a file named config.json in the root directory of the current model.
84
85
85
86
86
87
Create your own language model
87
- ---------------
88
+ ------------------------------
88
89
89
90
Put your language model into `LANCE_LANGUAGE_MODEL_HOME `.
90
91
You can’t perform that action at this time.
0 commit comments