ymoslem
(Yasmin Moslem)
April 29, 2021, 11:58am
1
Hello!
According to the features page , both OpenNMT-py and OpenNMT-tf support “multiple input features”. I can see an example for OpenNMT-tf . Could you please refer me to an example for OpenNMT-py.
Many thanks!
Yasmin
This has not been ported yet to OpenNMT-py>=2.0.
See some discussion here:
opened 10:57AM - 02 Nov 20 UTC
contributions welcome
type:feature
I have a text with multiple features, some of them discrete, some continuous, on… multiple simultaneous tracks:
For example, look at this image:
![image](https://user-images.githubusercontent.com/5757359/97860112-4043dd80-1d0a-11eb-9d58-d4de17e7cf65.png)
There are features for `tilt` or `yes-no`, and these features are not allowed to the lexical items.
Also, notice how words are spread out in none-regular intervals.
I would like the ability to add continuous features like "start" and "end" times (in frames) such that my input looks like:
Words:
`JOHN|WORD|5|15` `MAYBE|WORD|20|25` `MOVE|WORD|45|53` ....
And additional tokens:
` FRONT|TILT|0|50` `WIDE|APERT|0|100`...
I want these continuous features to have a "positional"-like embedding so the words could interact with the additional tokens using self-attention.
1 Like