question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Text classifier runs even when explicitly disabled via command-line

See original GitHub issue

Description

Found while testing https://github.com/brave/brave-core/pull/7533 / https://github.com/brave/brave-browser/issues/13395; apologies, @tmancey and @moritzhaller if this is a misunderstanding of mine in any way.

Steps to Reproduce

Build ID:

Brave 1.20.93 Chromium: 88.0.4324.96 (Official Build) dev (x86_64) Revision 68dba2d8a0b149a1d3afac56fa74648032bcf46b-refs/branch-heads/4324@{#1784} OS macOS Version 11.1 (Build 20C69)

  1. new profile
  2. launch Dev (or Nightly) using --args --enable-logging=stderr --vmodule="*/bat-native-ledger/*"=6,"*/brave_rewards/*"=6,"*/bat-native-ads/*"=6,"*/bat-native-confirmations/*"=6,"*/brave_ads/*"=6,"*/brave_user_model/*"=6 --brave-ads-staging --brave-ads-debug --rewards=staging=true,reconcile-interval=5 --disable-features="TextClassification" --enable-features="EpsilonGreedyBandit"
  3. start using Rewards (and Ads) by invoking and skipping Rewards onboarding
  4. note in the logs:
[16525:775:0129/130425.259234:VERBOSE1:features.cc(59)] Text classification feature is disabled
[16525:775:0129/130425.259284:VERBOSE1:features.cc(61)] Epsilon greedy bandit feature is enabled
[16525:775:0129/130425.259333:VERBOSE1:features.cc(63)] Purchase intent feature is enabled
  1. load google.com
  2. note in the logs:
[16525:775:0129/130425.666700:VERBOSE1:text_classification_resource.cc(56)] Successfully loaded emgmepnebbddgnkhfmhdhmjifkglkamo text classification resource

[16525:775:0129/131009.266567:VERBOSE1:conversions.cc(130)] Checking URL for conversions
[16525:775:0129/131009.267360:VERBOSE1:purchase_intent_processor.cc(97)] No purchase intent matches found for visited URL
[16525:775:0129/131009.267440:VERBOSE1:ads_impl.cc(170)] Search engine pages are not supported for text classification
[16525:775:0129/131009.269385:VERBOSE1:conversions.cc(151)] No conversions found for visited URL

Actual result:

It appears that both:

  1. the text-classification resource is loaded (via log), and
  2. google.com is correctly classified as a search engine

Expected result:

I would expect, given both the command-line arg as well as the corresponding entry “Text classification feature is disabled” iin the logs, for no text-classification resources to be loaded, nor for google.com to be classified (correctly) as a search-engine page, since the feature should be disabled.

Reproduces how often:

100%

Brave version (brave://version info)

Brave 1.20.93 Chromium: 88.0.4324.96 (Official Build) dev (x86_64)
Revision 68dba2d8a0b149a1d3afac56fa74648032bcf46b-refs/branch-heads/4324@{#1784}
OS macOS Version 11.1 (Build 20C69)

Version/Channel Information:

  • Can you reproduce this issue with the current release? n/a
  • Can you reproduce this issue with the beta channel? n/a
  • Can you reproduce this issue with the nightly channel? Yes

Other Additional Information:

  • Does the issue resolve itself when disabling Brave Shields? n/a
  • Does the issue resolve itself when disabling Brave Rewards? n/a
  • Is the issue reproducible on the latest version of Chrome? n/a

Miscellaneous Information:

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
tmanceycommented, Jan 29, 2021

@stephendonner hi, this is intentional so that we build local history when changing between models. @moritzhaller to clarify. Thanks

0reactions
moritzhallercommented, Feb 3, 2021

@stephendonner maybe we could augment the processor logs to indicate that the associated model is enabled/disabled, worth considering. I will close this ticket in the meantime. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Text Classification · Prodigy · An annotation tool for AI ...
A downloadable annotation tool for NLP and computer vision tasks such as named entity recognition, text classification, object detection, image segmentation ...
Read more >
How to Fix FutureWarning Messages in scikit-learn
This can be done by suppressing warning messages when your program is run. This can be achieved by explicitly configuring the Python warning ......
Read more >
Training Pipelines & Models · spaCy Usage Documentation
The recommended way to train your spaCy pipelines is via the spacy train command on the command line. It only needs a single...
Read more >
Testing in Java & JVM projects - Gradle User Manual
A test task of type Test that runs those unit tests. The JVM language plugins use the source set to configure the task...
Read more >
FAQ -- Frequently Asked Questions - curl
A command line tool for getting or sending data using URL syntax. Since curl uses libcurl, curl supports the same wide range of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found