# Possible to use new regex & lookup with tensorflow?

**URL:** <https://forum.rasa.com/t/possible-to-use-new-regex-lookup-with-tensorflow/1178>\
**Category:** Rasa Open Source\
**Created:** [September 17, 2018, 7:45pm UTC](https://forum.rasa.com/t/possible-to-use-new-regex-lookup-with-tensorflow/1178 "2018-09-17T19:45:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![duncsand](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@duncsand](https://forum.rasa.com/u/duncsand)\
**Post date:** [September 17, 2018, 7:45pm UTC](https://forum.rasa.com/t/possible-to-use-new-regex-lookup-with-tensorflow/1178/1 "2018-09-17T19:45:52Z")

</div>

Hi, I’m taking a look at Rasa and seeing if it might meet my requirements. My timing looks great, as the new regex and lookup features in the latest release are part of my requirements!

Looking at the examples, the regex & lookup features all seem to be implemeneted using a spacy/sklearn pipeline. Is it possible to use these with the tensorflow pipeline? I get the impression from some discussions here that tensorflow is the preferred option now, so it would be great to see an example nlu\_config.yml that allows me to use all these great new features together.

---

<div class="post-metadata">

**Author:** ![akelad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akelad/32/69_2.png) [@akelad](https://forum.rasa.com/u/akelad)\
**Post date:** [September 18, 2018, 4:04pm UTC](https://forum.rasa.com/t/possible-to-use-new-regex-lookup-with-tensorflow/1178/2 "2018-09-18T16:04:34Z")

</div>

you can use them with tensorflow as well! just add them on to the other components of the tensorflow pipeline

---

<div class="post-metadata">

**Author:** ![duncsand](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@duncsand](https://forum.rasa.com/u/duncsand)\
**Post date:** [September 18, 2018, 4:39pm UTC](https://forum.rasa.com/t/possible-to-use-new-regex-lookup-with-tensorflow/1178/3 "2018-09-18T16:39:14Z")

</div>

Thanks… I’m a big fan of showing verified examples of things that work, so here I share my pipeline that successfully uses lookups, regex and duckling with rasa/tensorflow:

```
language: "en"
pipeline:
- name: "tokenizer_whitespace"
- name: "intent_entity_featurizer_regex"
- name: "ner_crf"
- name: "intent_featurizer_count_vectors"
- name: ner_duckling_http
  url: http://localhost:8000
  dimensions:
  - email
  - phone-number
  - amount-of-money
- name: "intent_classifier_tensorflow_embedding"

```

I hope this is useful to some others - it’s important that “intent\_entity\_featurizer\_regex” comes before “ner\_crf” (which seems obvious when I think about it, but it’s always nice to have such things documented so that I don’t need to think!).
