# Need help implement the Embedding policy

**URL:** <https://forum.rasa.com/t/need-help-implement-the-embedding-policy/3260>\
**Category:** Rasa Open Source\
**Created:** [December 4, 2018, 1:11pm UTC](https://forum.rasa.com/t/need-help-implement-the-embedding-policy/3260 "2018-12-04T13:11:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![azizullah2017](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/azizullah2017/32/241_2.png) [@azizullah2017](https://forum.rasa.com/u/azizullah2017)\
**Post date:** [December 4, 2018, 1:11pm UTC](https://forum.rasa.com/t/need-help-implement-the-embedding-policy/3260/1 "2018-12-04T13:11:27Z")

</div>

I am trying to configure the embedding policy instead of `KerasPolicy` , `MemoizationPolicy`.

I am facing some error while using the new version of the core.[0.12.3]

```auto
def load(config_file: Optional[Text]) -> List['Policy']:
                        ^
SyntaxError: invalid syntax

```

**unable to use config.yml**

visited : [rasa\_core/policies.rst at master · RasaHQ/rasa\_core · GitHub](https://github.com/RasaHQ/rasa_core/blob/master/docs/policies.rst#id8)[Training and Policies](https://rasa.com/docs/core/policies/#id2)

---

<div class="post-metadata">

**Author:** ![naoko](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/naoko/32/196_2.png) [@naoko](https://forum.rasa.com/u/naoko)\
**Post date:** [December 4, 2018, 1:57pm UTC](https://forum.rasa.com/t/need-help-implement-the-embedding-policy/3260/2 "2018-12-04T13:57:58Z")

</div>

The type annotation syntax is supported only after python 3.5+. What python version you are using?

---

<div class="post-metadata">

**Author:** ![azizullah2017](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/azizullah2017/32/241_2.png) [@azizullah2017](https://forum.rasa.com/u/azizullah2017)\
**Post date:** [December 5, 2018, 5:11am UTC](https://forum.rasa.com/t/need-help-implement-the-embedding-policy/3260/3 "2018-12-05T05:11:45Z")

</div>

Oh! I was trying with with python 2.7.@naoko thanks you. let me try with 3.5
