All Apps and Add-ons

Customize TFIDF Stop Words

ericchaucl
Path Finder

I'm now trying to use the TFIDF algorithm and use the parameter "stop_words=english".

Where are the stop_words defined and how can I customize it? Thanks!

0 Karma
1 Solution

ericchaucl
Path Finder

Thanks for the advise. Finally I can find it!

It's in the path:
$SPLUNK HOME\etc\apps\Splunk_SA_Scientific_Python_windows_x86_64\bin\windows_x86_64\Lib\site-packages\sklearn\feature_extraction\stop_words.py

View solution in original post

0 Karma

ericchaucl
Path Finder

Thanks for the advise. Finally I can find it!

It's in the path:
$SPLUNK HOME\etc\apps\Splunk_SA_Scientific_Python_windows_x86_64\bin\windows_x86_64\Lib\site-packages\sklearn\feature_extraction\stop_words.py

0 Karma

parkz
Explorer

Is there a similar file path for Linux Splunk app?

0 Karma

cmerriman
Super Champion

If you go through the splunk docs for the algoriths, they bring you to the scikit-learn that houses the documentation. if you go through that enough, you can land on this page. https://github.com/scikit-learn/scikit-learn/blob/ef5cb84a805efbe4bb06516670a9b8c690992bd7/sklearn/f...

0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...