Upload folder using huggingface_hub
Browse files- .DS_Store +0 -0
- .gitattributes +1 -0
- README.md +17 -1
.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|
.gitattributes
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
phishing_model.bin filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -12,8 +12,24 @@ language:
|
|
| 12 |
|
| 13 |
This is a lightweight FastText model trained to classify domain names as either phishing or clean. It uses supervised learning with `wordNgrams=2` for better n-gram feature coverage.
|
| 14 |
|
| 15 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
```bash
|
| 18 |
# Predict a single domain
|
| 19 |
echo "carreeffoursa.site" | ./fasttext predict phishing_model.bin -
|
|
|
|
| 12 |
|
| 13 |
This is a lightweight FastText model trained to classify domain names as either phishing or clean. It uses supervised learning with `wordNgrams=2` for better n-gram feature coverage.
|
| 14 |
|
| 15 |
+
## Installation
|
| 16 |
+
|
| 17 |
+
Option 1: From Source
|
| 18 |
+
|
| 19 |
+
git clone https://github.com/facebookresearch/fastText.git
|
| 20 |
+
cd fastText
|
| 21 |
+
mkdir build && cd build
|
| 22 |
+
cmake ..
|
| 23 |
+
make
|
| 24 |
+
|
| 25 |
+
Option 2: Using pip (limited support)
|
| 26 |
|
| 27 |
+
pip install fasttext
|
| 28 |
+
|
| 29 |
+
⚠️ The pip version does not support all features. Compiling from source is recommended.
|
| 30 |
+
|
| 31 |
+
## Usage
|
| 32 |
+
echo "carreeffoursa.site" | ./fasttext predict phishing_model.bin -
|
| 33 |
```bash
|
| 34 |
# Predict a single domain
|
| 35 |
echo "carreeffoursa.site" | ./fasttext predict phishing_model.bin -
|