You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Keisuke Sakaguchi, Kevin Duh, Matt Post, Benjamin Van Durme, "Robsut Wrod Reocginiton via semi-Character Recurrent Neural Networ," arXiv:1608.02214 (2016). [`arXiv
25
+
<https://arxiv.org/abs/1608.02214>`_]
26
+
27
+
"""
21
28
def__init__(self, operation,
22
29
alph=default_alph,
23
30
specialsignals=default_specialsignals,
24
31
concatcharvec_encoder=None,
25
32
batchsize=1,
26
33
nb_hiddenunits=650):
34
+
""" Instantiate the scRNN spell corrector.
35
+
36
+
:param operation: types of distortion of words in training (options: "NOISE-INSERT", "NOISE-DELETE", "NOISE-REPLACE", "JUMBLE-WHOLE", "JUMBLE-BEG", "JUMBLE-END", and "JUMBLE-INT")
37
+
:param alph: default string of characters (Default: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.,:;'*!?`$%&(){}[]-/\@_#")
38
+
:param specialsignals: dictionary of special signals (Default built-in)
39
+
:param concatcharvec_encoder: one-hot encoder for characters, initialize if None. (Default: None)
40
+
:param batchsize: batch size. (Default: 1)
41
+
:param nb_hiddenunits: number of hidden units. (Default: 650)
0 commit comments