Skip to content

Commit ee7de03

Browse files
authored
Merge pull request #1 from francoishernandez/fix_typos_2090
Fix some typos -- Source Features 2.0 PR
2 parents d18392c + a736103 commit ee7de03

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/source/FAQ.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ During inference you can pass features by using the `--src_feats` argument. `src
542542
python translate.py -model model_step_10.pt -src ../data.txt.tok -output ../data.out --src_feats "{'feat_0': '../data.txt.feats0', 'feat_1': '../data.txt.feats1'}"
543543
```
544544

545-
When using the Transformer arquitechture make sure the following options are appropiately set:
545+
When using the Transformer architechture make sure the following options are appropriately set:
546546

547547
- `src_word_vec_size` and `tgt_word_vec_size` or `word_vec_size`
548548
- `feat_merge`: how to handle features vecs

onmt/inputters/corpus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def _process(item, is_train):
7474

7575
maybe_example['src'] = {"src": ' '.join(maybe_example['src'])}
7676

77-
# Make features part of src as in MultiTextField
77+
# Make features part of src as in TextMultiField
7878
# {'src': {'src': ..., 'feat1': ...., 'feat2': ....}}
7979
if 'src_feats' in maybe_example:
8080
for feat_name, feat_value in maybe_example['src_feats'].items():

onmt/inputters/text_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def read(self, sequences, side, features={}):
1818
side (str): Prefix used in return dict. Usually
1919
``"src"`` or ``"tgt"``.
2020
features: (Dict[str or Iterable[str]]):
21-
dictionary mapping feature names with th path to feature
21+
dictionary mapping feature names with the path to feature
2222
file or iterable of the actual feature data.
2323
2424
Yields:

0 commit comments

Comments
 (0)