範例
another delimiter
輸入
kitten sittingExpected answer
JSON3- 样本分隔符
- 插入代价
1- 刪除代价
1- 替換代价
1
cost zero
輸入
kitten
sittingExpected answer
JSON0- 样本分隔符
\n- 插入代价
0- 刪除代价
0- 替換代价
0
negative deletion cost
輸入
kitten
sittingExpected rejection
Message containsNegative costs are not allowed.- 样本分隔符
\n- 插入代价
1- 刪除代价
-1- 替換代价
1
negative insertion cost
輸入
kitten
sittingExpected rejection
Message containsNegative costs are not allowed.- 样本分隔符
\n- 插入代价
-1- 刪除代价
1- 替換代价
1
negative substitution cost
輸入
kitten
sittingExpected rejection
Message containsNegative costs are not allowed.- 样本分隔符
\n- 插入代价
1- 刪除代价
1- 替換代价
-1
too few samples
輸入
kittenExpected rejection
Message containsIncorrect number of samples. Check your input and/or delimiter.- 样本分隔符
\n- 插入代价
1- 刪除代价
1- 替換代价
1
too many samples
輸入
kitten
sitting
kitchenExpected rejection
Message containsIncorrect number of samples. Check your input and/or delimiter.- 样本分隔符
\n- 插入代价
1- 刪除代价
1- 替換代价
1
varied costs 1
輸入
kitten
sittingExpected answer
JSON230- 样本分隔符
\n- 插入代价
10- 刪除代价
100- 替換代价
1000
varied costs 2
輸入
kitten
sittingExpected answer
JSON1020- 样本分隔符
\n- 插入代价
1000- 刪除代价
100- 替換代价
10
Wikipedia example 1
輸入
kitten
sittingExpected answer
JSON3- 样本分隔符
\n- 插入代价
1- 刪除代价
1- 替換代价
1
参數
| 参數 | 默認值 | 輸入與選項 |
|---|---|---|
| 样本分隔符 | "\\n" | 支持 \n、\r 和 \t 等跳脫序列 |
| 插入代价 | 1 | 數字 |
| 刪除代价 | 1 | 數字 |
| 替換代价 | 1 | 數字 |