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.
 
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
 
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
 
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?
 
They are strings, you should delimit them. '{-Variable.Name-}'=='{-Variable.Name2-}'
 
  • Спасибо
Реакции: shabbysquire

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