Code_Chen
Code_Chen
As for the second issue proposed in https://github.com/QData/TextAttack/issues/713#issue-1574652467, I replace `self._enptb_to_universal` with an array with the relevant universal POS tags, in the `\textattack\transformations\word_swaps\word_swap_inflections.py` file, as the following code. ```python self._enptb_to_universal...
> In the strings.py file, change the line 237 which is "pos_list.append(token.annotation_layers["pos"][0]._value)" to "pos_list.append(token.annotation_layers["upos"][0]._value)", restart runtime and it should work Thanks! The problem was successfully solved in this way.
As for the second issue proposed in https://github.com/QData/TextAttack/issues/713#issue-1574652467, I replace `self._enptb_to_universal` with an array with the relevant universal POS tags, in the `\textattack\transformations\word_swaps\word_swap_inflections.py` file, as the following code. ```python self._enptb_to_universal...