@@ -37,14 +37,18 @@ class Embeddings: # pylint: disable=too-many-instance-attributes
3737
3838 Embeddings are composed of the 4 chunk types:
3939
40- 1. :class:`~finalfusion.storage.Storage` *(required)*:
40+ 1. :class:`~finalfusion.storage.storage.Storage` *(required)*:
41+
4142 * :class:`~finalfusion.storage.ndarray.NdArray`
4243 * :class:`~finalfusion.storage.ndarray.QuantizedArray`
43- 2. :class:`~finalfusion.vocab.Vocab` *(required)*:
44- * :class:`~finalfusion.vocab.simple_vocab.SimpleVocab`,
44+
45+ 2. :class:`~finalfusion.vocab.vocab.Vocab` *(required)*:
46+
47+ * :class:`~finalfusion.vocab.simple_vocab.SimpleVocab`
4548 * :class:`~finalfusion.vocab.subword.FinalfusionBucketVocab`
4649 * :class:`~finalfusion.vocab.subword.FastTextVocab`
4750 * :class:`~finalfusion.vocab.subword.ExplicitVocab`
51+
4852 3. :class:`~finalfusion.metadata.Metadata`
4953 4. :class:`~finalfusion.norms.Norms`
5054
@@ -81,7 +85,7 @@ def __init__(self,
8185 Initializes Embeddings with the given chunks.
8286
8387 :Conditions:
84- The following conditions need to hold if the respective chunks are passed.
88+ The following conditions need to hold if the respective chunks are passed:
8589
8690 * Chunks need to have the expected type.
8791 * ``vocab.idx_bound == storage.shape[0]``
@@ -103,6 +107,7 @@ def __init__(self,
103107 ------
104108 AssertionError
105109 If any of the conditions don't hold.
110+
106111 """
107112 Embeddings ._check_requirements (storage , vocab , norms , metadata )
108113 self ._storage = storage
@@ -112,7 +117,7 @@ def __init__(self,
112117
113118 def __getitem__ (self , item : str ) -> np .ndarray :
114119 """
115- Returns an embeddings .
120+ Returns an embedding .
116121
117122 Parameters
118123 ----------
@@ -347,10 +352,11 @@ def chunks(self) -> List[Chunk]:
347352 Get the Embeddings Chunks as a list.
348353
349354 The Chunks are ordered in the expected serialization order:
350- 1. Metadata (optional)
351- 2. Vocabulary
352- 3. Storage
353- 4. Norms (optional)
355+
356+ 1. Metadata (optional)
357+ 2. Vocabulary
358+ 3. Storage
359+ 4. Norms (optional)
354360
355361 Returns
356362 -------
@@ -435,7 +441,7 @@ def analogy( # pylint: disable=too-many-arguments
435441 query `word1` is to `word2` as `word3` is to `?`. More concretely,
436442 it searches embeddings that are similar to:
437443
438- * embedding(word2) - embedding(word1) + embedding(word3)*
444+ `` embedding(word2) - embedding(word1) + embedding(word3)``
439445
440446 Words specified in ``skip`` are not considered as answers. If ``skip``
441447 is None, the query words ``word1``, ``word2`` and ``word3`` are
0 commit comments