Context Recognizer questions

shabbysquire

Client
Регистрация
25.11.2012
Сообщения
544
Благодарностей
26
Баллы
28
I'm trying out the context recognizer to gauge the suitability of a web page. It seems to work quite well (even when I select only 1 theme). I've read the ZP wiki on this feature, but not too sure how to solve an issue.

For example, I want to scrape articles (with article extraction first) within a niche like food and beverage. Context recognizer result shows the article is food and beverage ok, but can I do IF on the variable? Because if ok, I need to save article to file, if crap result, then discard.

Also I have minimal relevance set at 30. Is this optimal? What happens if I adjust this number?

Thanks.
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113
Context recognizer result shows the article is food and beverage ok, but can I do IF on the variable?
I'm not sure what you mean. You will have variable with Food Beverage and you can check it with IF
 

shabbysquire

Client
Регистрация
25.11.2012
Сообщения
544
Благодарностей
26
Баллы
28
I'm not sure what you mean. You will have variable with Food Beverage and you can check it with IF
I have variable of context recognizer ok, but how would I compare to a context category I define? Because everyday, the context category I need to target changes, so I need to define somewhere. So I tried this:

I tried putting context category Food Beverage in word processing, then put that word to variable. I've then tried to compare with IF, but it always goes to bad exit when both variables match. The IF I used is:

Код:
{-Variable.result_of_context_recognizer-}=={-Variable.food_beverage-}
context-issue.JPG
 

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
834
Баллы
113
I have variable of context recognizer ok, but how would I compare to a context category I define? Because everyday, the context category I need to target changes, so I need to define somewhere. So I tried this:

I tried putting context category Food Beverage in word processing, then put that word to variable. I've then tried to compare with IF, but it always goes to bad exit when both variables match. The IF I used is:

Код:
{-Variable.result_of_context_recognizer-}=={-Variable.food_beverage-}
Посмотреть вложение 4695
Could you attach the template sample?
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
683
Баллы
113
They are strings, you should delimit them. '{-Variable.Name-}'=='{-Variable.Name2-}'
 
  • Спасибо
Реакции: shabbysquire

shabbysquire

Client
Регистрация
25.11.2012
Сообщения
544
Благодарностей
26
Баллы
28

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)