-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathproject-structure.txt
More file actions
171 lines (161 loc) · 6.5 KB
/
Copy pathproject-structure.txt
File metadata and controls
171 lines (161 loc) · 6.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
.
├── docs/ # Documentation and reports
│ └── reports/ # Benchmark and comparison reports
│ ├── advanced_adversarial_evaluation_report.md
│ ├── comprehensive_comparison_report.md
│ ├── model_comparison_report.md
│ └── multilingual_comparison_report.md
├── feedback/
│ └── feedback_ots-mbert.csv
├── scripts/ # Deployment and utility scripts
│ ├── check_docker_containers.sh
│ ├── launch_multiple_containers.sh
│ ├── start.sh # Main startup script
│ ├── start-docker.sh # Docker startup
│ ├── start-local.sh # Local development startup
│ ├── start-manual.sh # Manual startup
│ ├── test_multiple_containers.sh
│ └── utils/ # Utility scripts
│ └── enhanced_preprocessing.py
├── src/
│ ├── adapters_2.5/ # PEFT adapters for Hebrew-trained model
│ │ ├── adapter_config.json
│ │ └── README.md
│ ├── api_interface/ # FastAPI backend
│ │ ├── config/
│ │ │ ├── __init__.py
│ │ │ ├── settings.py
│ │ │ └── simple_settings.py
│ │ ├── middleware/
│ │ │ ├── __init__.py
│ │ │ └── security.py
│ │ ├── models/
│ │ │ ├── __init__.py
│ │ │ ├── request_models.py
│ │ │ ├── response_models.py
│ │ │ └── tmforum_models.py
│ │ ├── routers/
│ │ │ ├── __init__.py
│ │ │ ├── feedback.py
│ │ │ ├── health.py
│ │ │ ├── prediction.py
│ │ │ └── tmforum.py
│ │ ├── services/
│ │ │ ├── __init__.py
│ │ │ ├── enhanced_preprocessing.py
│ │ │ ├── feedback_service.py
│ │ │ ├── model_loader.py
│ │ │ └── prediction_service.py
│ │ ├── utils/
│ │ │ ├── __init__.py
│ │ │ ├── exceptions.py
│ │ │ └── logging.py
│ │ ├── __init__.py
│ │ ├── main.py
│ │ └── openapi.yaml
│ └── mBERT/ # Multilingual BERT model system
│ ├── tests/ # Model tests
│ │ ├── pytest_tests.py
│ │ ├── README.md
│ │ ├── run_all_tests.py
│ │ ├── simple_phishing.json
│ │ ├── stressTest_1000_mlx.py
│ │ ├── stressTest_20k_mlx_api.py
│ │ ├── stressTest_500.py
│ │ ├── test_basic.py
│ │ ├── test_obvious_ham.json
│ │ ├── test_obvious_phishing.json
│ │ ├── test_obvious_spam.json
│ │ ├── test_sms.py
│ │ ├── test_stress.py
│ │ └── test_utils.py
│ └── training/
│ └── model-training/
│ ├── adapters_2.5/
│ ├── adapters_2.5_best/
│ ├── dataset/
│ ├── utils/
│ └── [training scripts...]
├── tests/ # All test files organized
│ ├── adversarial/ # Adversarial testing
│ │ └── advanced_adversarial_test.py
│ ├── api/
│ │ ├── test_api_complete.py
│ │ ├── test_api_full.py
│ │ ├── test_api_simple.py
│ │ ├── test_api_structure.py
│ │ ├── test_feedback_api.py
│ │ ├── test_server.py
│ │ └── test_tmforum_api.py
│ ├── data/ # Test data and fixtures
│ │ ├── test_obvious_phishing.json
│ │ ├── test_obvious_spam.json
│ │ ├── test_phishing.json
│ │ ├── test_spam.json
│ │ └── test_cases.json
│ ├── external_prompts/ # External model test prompts (GPT-OSS)
│ │ ├── test_ham.json
│ │ ├── test_prompt.json
│ │ └── test_spam.json
│ ├── integration/
│ │ ├── test-docker.sh
│ │ ├── test-frontend.sh
│ │ ├── test_feedback_curl.sh
│ │ ├── test_docker_v2.5.sh
│ │ └── verify_docker_setup.sh
│ ├── comprehensive_model_comparison.py
│ ├── multilingual_comparison_test.py
│ ├── quick_improvement_test.py
│ ├── test_apis.py
│ └── README.md
├── .dockerignore
├── .dockerignore.local
├── .gitattributes
├── .gitignore
├── .gitmodules
├── CLAUDE.md
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── docker-compose.yml
├── Dockerfile
├── Dockerfile.dev
├── Dockerfile.distroless
├── Dockerfile.insecure
├── Dockerfile.local
├── Dockerfile.secure
├── Dockerfile.simple
├── FEEDBACK_API.md
├── Installation.md
├── LICENSE
├── nginx.conf
├── project-structure.txt
├── README.md
├── requirements-minimal.txt
├── requirements-security.txt
├── requirements.txt
├── RESEARCH.md
└── STARTUP_GUIDE.md
## Project Overview
**OpenTextShield Platform v2.6** - Advanced Multilingual SMS Spam/Phishing Detection
### Core Components
**API Interface** (`src/api_interface/`) - Professional modular FastAPI structure
**mBERT Model** (`src/mBERT/`) - Multilingual BERT with PEFT incremental learning
**Deployment Scripts** (`scripts/`) - Automated deployment and utility scripts
**Documentation** (`docs/`) - Reports and comprehensive guides
**Test Suite** (`tests/`) - Comprehensive API, integration, and adversarial tests
### Recent Reorganization (v2.6)
**Moved to scripts/**:
- start.sh, start-docker.sh, start-local.sh, start-manual.sh
- check_docker_containers.sh, launch_multiple_containers.sh
- test_multiple_containers.sh
- utils/enhanced_preprocessing.py
**Moved to docs/reports/**:
- advanced_adversarial_evaluation_report.md
- comprehensive_comparison_report.md
- model_comparison_report.md
- multilingual_comparison_report.md
**Moved to tests/adversarial/**:
- advanced_adversarial_test.py
**Moved to tests/external_prompts/**:
- test_ham.json, test_spam.json, test_prompt.json (GPT-OSS prompts)
**File Count**: 18 directories, 120+ files