In [ ]:
import os; os.chdir('..')
In [ ]:
from utils.get_intent import get_top_intent
In [ ]:
get_top_intent("best cat ear headphones")
Out[ ]:
[('Commercial', 0.969), ('Transactional', 0.673), ('Informational', 0.237), ('Navigational', 0.215), ('Local', 0.155)]
In [ ]:
get_top_intent("buy cat ear headphones")
Out[ ]:
[('Transactional', 0.987), ('Navigational', 0.317), ('Commercial', 0.27), ('Informational', 0.249), ('Local', 0.229)]
In [ ]:
get_top_intent("how to create a facebook account")
Out[ ]:
[('Informational', 0.984), ('Local', 0.244), ('Commercial', 0.237), ('Transactional', 0.212), ('Navigational', 0.194)]
In [ ]:
get_top_intent("barber shops in USA")
Out[ ]:
[('Local', 0.988), ('Informational', 0.3), ('Commercial', 0.278), ('Navigational', 0.273), ('Transactional', 0.234)]
In [ ]:
get_top_intent("Razer Kraken Headsets")
Out[ ]:
[('Informational', 0.763), ('Navigational', 0.638), ('Transactional', 0.433), ('Commercial', 0.286), ('Local', 0.236)]
In [ ]:
get_top_intent("Amazon Great indian festival")
Out[ ]:
[('Navigational', 0.861), ('Transactional', 0.725), ('Local', 0.422), ('Commercial', 0.287), ('Informational', 0.202)]
In [ ]:
get_top_intent("facebook")
Out[ ]:
[('Navigational', 0.983), ('Transactional', 0.27), ('Local', 0.23), ('Informational', 0.209), ('Commercial', 0.192)]
In [ ]:
get_top_intent("spotify")
Out[ ]:
[('Navigational', 0.983), ('Transactional', 0.256), ('Informational', 0.241), ('Local', 0.214), ('Commercial', 0.184)]
In [ ]: