macpaw-research/mnemos_entity_extractor_v1_small
Browse files- README.md +231 -0
- added_tokens.json +4 -0
- config.json +251 -0
- model.safetensors +3 -0
- runs/Oct13_12-21-18_2e4e6b33cc2f/events.out.tfevents.1760358151.2e4e6b33cc2f.5538.0 +3 -0
- runs/Oct13_12-21-18_2e4e6b33cc2f/events.out.tfevents.1760358497.2e4e6b33cc2f.5538.1 +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +75 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
|
@@ -0,0 +1,231 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- span-marker
|
| 4 |
+
- token-classification
|
| 5 |
+
- ner
|
| 6 |
+
- named-entity-recognition
|
| 7 |
+
- generated_from_span_marker_trainer
|
| 8 |
+
widget:
|
| 9 |
+
- text: Please lower the brightness, locate any images exceeding 2 MB that contain
|
| 10 |
+
the summary section, and activate privacy settings in the application.
|
| 11 |
+
- text: Before the meeting in Room 204, can you copy the references list from the
|
| 12 |
+
thesis and disable notifications for comments in Google Docs?
|
| 13 |
+
- text: For tomorrow' s Parent - Teacher Conference at Lincoln High School, make sure
|
| 14 |
+
the volume is set to low and email the agenda to principal @ lincolnhs . edu.
|
| 15 |
+
- text: Is the conclusion on page 12 of the thesis . pdf ready for review by Marcus
|
| 16 |
+
Osei this Thursday? Also, please check if auto - save is enabled.
|
| 17 |
+
- text: Upload the image called vacation2023 . png to my boss via his work email and
|
| 18 |
+
delete all photos from the gallery app.
|
| 19 |
+
pipeline_tag: token-classification
|
| 20 |
+
library_name: span-marker
|
| 21 |
+
metrics:
|
| 22 |
+
- precision
|
| 23 |
+
- recall
|
| 24 |
+
- f1
|
| 25 |
+
model-index:
|
| 26 |
+
- name: SpanMarker
|
| 27 |
+
results:
|
| 28 |
+
- task:
|
| 29 |
+
type: token-classification
|
| 30 |
+
name: Named Entity Recognition
|
| 31 |
+
dataset:
|
| 32 |
+
name: Unknown
|
| 33 |
+
type: unknown
|
| 34 |
+
split: eval
|
| 35 |
+
metrics:
|
| 36 |
+
- type: f1
|
| 37 |
+
value: 0.8599876058665565
|
| 38 |
+
name: F1
|
| 39 |
+
- type: precision
|
| 40 |
+
value: 0.8455601592330815
|
| 41 |
+
name: Precision
|
| 42 |
+
- type: recall
|
| 43 |
+
value: 0.874915938130464
|
| 44 |
+
name: Recall
|
| 45 |
+
---
|
| 46 |
+
|
| 47 |
+
# SpanMarker
|
| 48 |
+
|
| 49 |
+
This is a [SpanMarker](https://github.com/tomaarsen/SpanMarkerNER) model that can be used for Named Entity Recognition.
|
| 50 |
+
|
| 51 |
+
## Model Details
|
| 52 |
+
|
| 53 |
+
### Model Description
|
| 54 |
+
- **Model Type:** SpanMarker
|
| 55 |
+
<!-- - **Encoder:** [Unknown](https://huggingface.co/unknown) -->
|
| 56 |
+
- **Maximum Sequence Length:** 512 tokens
|
| 57 |
+
- **Maximum Entity Length:** 8 words
|
| 58 |
+
<!-- - **Training Dataset:** [Unknown](https://huggingface.co/datasets/unknown) -->
|
| 59 |
+
<!-- - **Language:** Unknown -->
|
| 60 |
+
<!-- - **License:** Unknown -->
|
| 61 |
+
|
| 62 |
+
### Model Sources
|
| 63 |
+
|
| 64 |
+
- **Repository:** [SpanMarker on GitHub](https://github.com/tomaarsen/SpanMarkerNER)
|
| 65 |
+
- **Thesis:** [SpanMarker For Named Entity Recognition](https://raw.githubusercontent.com/tomaarsen/SpanMarkerNER/main/thesis.pdf)
|
| 66 |
+
|
| 67 |
+
### Model Labels
|
| 68 |
+
| Label | Examples |
|
| 69 |
+
|:---------------|:----------------------------------------------------------------|
|
| 70 |
+
| action | "arrive", "print", "bring" |
|
| 71 |
+
| app_data_type | "posts", "playlists", "messages" |
|
| 72 |
+
| app_name | "Notion", "Spotify", "Viber" |
|
| 73 |
+
| app_setting | "notifications", "dark mode", "language setting" |
|
| 74 |
+
| contact_info | "address", "email address", "office number" |
|
| 75 |
+
| date | "March 3rd", "15 . 04 . 2024", "2024 - 04 - 01" |
|
| 76 |
+
| device_setting | "notifications", "screen timeout", "bluetooth" |
|
| 77 |
+
| event_title | "table", "Board Meeting", "Charity Gala" |
|
| 78 |
+
| file_name | "sales_data . xlsx", "vacation_photos . zip", "expenses . xlsx" |
|
| 79 |
+
| file_size | "above 700MB", "above 500 kb", "2 MB" |
|
| 80 |
+
| file_type | "document files", "spreadsheet", "videos" |
|
| 81 |
+
| folder_name | "Downloads", "Budget Reports", "Invoices" |
|
| 82 |
+
| in_file_data | "table of contents", "table 2", "table 4" |
|
| 83 |
+
| location | "conference room", "Riverside Pavilion", "San Francisco office" |
|
| 84 |
+
| person_name | "Maria Lopez", "Priya Singh", "Alexei Petrov" |
|
| 85 |
+
| relationship | "friend", "sister", "colleague" |
|
| 86 |
+
| system_command | "airplane mode", "enable", "delete" |
|
| 87 |
+
| time | "13 : 45", "8 : 30 AM", "noon" |
|
| 88 |
+
|
| 89 |
+
## Evaluation
|
| 90 |
+
|
| 91 |
+
### Metrics
|
| 92 |
+
| Label | Precision | Recall | F1 |
|
| 93 |
+
|:---------------|:----------|:-------|:-------|
|
| 94 |
+
| **all** | 0.8456 | 0.8749 | 0.8600 |
|
| 95 |
+
| action | 0.8261 | 0.9137 | 0.8677 |
|
| 96 |
+
| app_data_type | 0.7631 | 0.6862 | 0.7226 |
|
| 97 |
+
| app_name | 0.9066 | 0.9407 | 0.9233 |
|
| 98 |
+
| app_setting | 0.8525 | 0.8998 | 0.8755 |
|
| 99 |
+
| contact_info | 0.8847 | 0.9089 | 0.8966 |
|
| 100 |
+
| date | 0.9342 | 0.9302 | 0.9322 |
|
| 101 |
+
| device_setting | 0.8345 | 0.8450 | 0.8397 |
|
| 102 |
+
| event_title | 0.8881 | 0.9149 | 0.9013 |
|
| 103 |
+
| file_name | 0.9393 | 0.9243 | 0.9317 |
|
| 104 |
+
| file_size | 0.7518 | 0.7357 | 0.7437 |
|
| 105 |
+
| file_type | 0.7535 | 0.8697 | 0.8075 |
|
| 106 |
+
| folder_name | 0.9523 | 0.9106 | 0.9310 |
|
| 107 |
+
| in_file_data | 0.7632 | 0.7969 | 0.7797 |
|
| 108 |
+
| location | 0.8953 | 0.8658 | 0.8803 |
|
| 109 |
+
| person_name | 0.9742 | 0.9788 | 0.9765 |
|
| 110 |
+
| relationship | 0.9381 | 0.9476 | 0.9428 |
|
| 111 |
+
| system_command | 0.75 | 0.7491 | 0.7495 |
|
| 112 |
+
| time | 0.8733 | 0.8385 | 0.8555 |
|
| 113 |
+
|
| 114 |
+
## Uses
|
| 115 |
+
|
| 116 |
+
### Direct Use for Inference
|
| 117 |
+
|
| 118 |
+
```python
|
| 119 |
+
from span_marker import SpanMarkerModel
|
| 120 |
+
|
| 121 |
+
# Download from the 🤗 Hub
|
| 122 |
+
model = SpanMarkerModel.from_pretrained("span_marker_model_id")
|
| 123 |
+
# Run inference
|
| 124 |
+
entities = model.predict("Upload the image called vacation2023 . png to my boss via his work email and delete all photos from the gallery app.")
|
| 125 |
+
```
|
| 126 |
+
|
| 127 |
+
### Downstream Use
|
| 128 |
+
You can finetune this model on your own dataset.
|
| 129 |
+
|
| 130 |
+
<details><summary>Click to expand</summary>
|
| 131 |
+
|
| 132 |
+
```python
|
| 133 |
+
from span_marker import SpanMarkerModel, Trainer
|
| 134 |
+
|
| 135 |
+
# Download from the 🤗 Hub
|
| 136 |
+
model = SpanMarkerModel.from_pretrained("span_marker_model_id")
|
| 137 |
+
|
| 138 |
+
# Specify a Dataset with "tokens" and "ner_tag" columns
|
| 139 |
+
dataset = load_dataset("conll2003") # For example CoNLL2003
|
| 140 |
+
|
| 141 |
+
# Initialize a Trainer using the pretrained model & dataset
|
| 142 |
+
trainer = Trainer(
|
| 143 |
+
model=model,
|
| 144 |
+
train_dataset=dataset["train"],
|
| 145 |
+
eval_dataset=dataset["validation"],
|
| 146 |
+
)
|
| 147 |
+
trainer.train()
|
| 148 |
+
trainer.save_model("span_marker_model_id-finetuned")
|
| 149 |
+
```
|
| 150 |
+
</details>
|
| 151 |
+
|
| 152 |
+
<!--
|
| 153 |
+
### Out-of-Scope Use
|
| 154 |
+
|
| 155 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
| 156 |
+
-->
|
| 157 |
+
|
| 158 |
+
<!--
|
| 159 |
+
## Bias, Risks and Limitations
|
| 160 |
+
|
| 161 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
| 162 |
+
-->
|
| 163 |
+
|
| 164 |
+
<!--
|
| 165 |
+
### Recommendations
|
| 166 |
+
|
| 167 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
| 168 |
+
-->
|
| 169 |
+
|
| 170 |
+
## Training Details
|
| 171 |
+
|
| 172 |
+
### Training Set Metrics
|
| 173 |
+
| Training set | Min | Median | Max |
|
| 174 |
+
|:----------------------|:----|:--------|:----|
|
| 175 |
+
| Sentence length | 5 | 19.3422 | 54 |
|
| 176 |
+
| Entities per sentence | 2 | 5.9111 | 13 |
|
| 177 |
+
|
| 178 |
+
### Training Hyperparameters
|
| 179 |
+
- learning_rate: 5e-05
|
| 180 |
+
- train_batch_size: 32
|
| 181 |
+
- eval_batch_size: 32
|
| 182 |
+
- seed: 42
|
| 183 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 184 |
+
- lr_scheduler_type: linear
|
| 185 |
+
- lr_scheduler_warmup_ratio: 0.1
|
| 186 |
+
- num_epochs: 4
|
| 187 |
+
- mixed_precision_training: Native AMP
|
| 188 |
+
|
| 189 |
+
### Training Results
|
| 190 |
+
| Epoch | Step | Validation Loss | Validation Precision | Validation Recall | Validation F1 | Validation Accuracy |
|
| 191 |
+
|:------:|:----:|:---------------:|:--------------------:|:-----------------:|:-------------:|:-------------------:|
|
| 192 |
+
| 1.9763 | 1000 | 0.0369 | 0.8426 | 0.8649 | 0.8536 | 0.9231 |
|
| 193 |
+
| 3.9526 | 2000 | 0.0352 | 0.8450 | 0.8751 | 0.8598 | 0.9264 |
|
| 194 |
+
|
| 195 |
+
### Framework Versions
|
| 196 |
+
- Python: 3.12.11
|
| 197 |
+
- SpanMarker: 1.7.0
|
| 198 |
+
- Transformers: 4.51.3
|
| 199 |
+
- PyTorch: 2.8.0+cu126
|
| 200 |
+
- Datasets: 3.6.0
|
| 201 |
+
- Tokenizers: 0.21.4
|
| 202 |
+
|
| 203 |
+
## Citation
|
| 204 |
+
|
| 205 |
+
### BibTeX
|
| 206 |
+
```
|
| 207 |
+
@software{Aarsen_SpanMarker,
|
| 208 |
+
author = {Aarsen, Tom},
|
| 209 |
+
license = {Apache-2.0},
|
| 210 |
+
title = {{SpanMarker for Named Entity Recognition}},
|
| 211 |
+
url = {https://github.com/tomaarsen/SpanMarkerNER}
|
| 212 |
+
}
|
| 213 |
+
```
|
| 214 |
+
|
| 215 |
+
<!--
|
| 216 |
+
## Glossary
|
| 217 |
+
|
| 218 |
+
*Clearly define terms in order to be accessible across audiences.*
|
| 219 |
+
-->
|
| 220 |
+
|
| 221 |
+
<!--
|
| 222 |
+
## Model Card Authors
|
| 223 |
+
|
| 224 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
| 225 |
+
-->
|
| 226 |
+
|
| 227 |
+
<!--
|
| 228 |
+
## Model Card Contact
|
| 229 |
+
|
| 230 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
| 231 |
+
-->
|
added_tokens.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"<end>": 28997,
|
| 3 |
+
"<start>": 28996
|
| 4 |
+
}
|
config.json
ADDED
|
@@ -0,0 +1,251 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"SpanMarkerModel"
|
| 4 |
+
],
|
| 5 |
+
"encoder": {
|
| 6 |
+
"_attn_implementation_autoset": false,
|
| 7 |
+
"_name_or_path": "bert-base-cased",
|
| 8 |
+
"add_cross_attention": false,
|
| 9 |
+
"architectures": [
|
| 10 |
+
"BertForMaskedLM"
|
| 11 |
+
],
|
| 12 |
+
"attention_probs_dropout_prob": 0.1,
|
| 13 |
+
"bad_words_ids": null,
|
| 14 |
+
"begin_suppress_tokens": null,
|
| 15 |
+
"bos_token_id": null,
|
| 16 |
+
"chunk_size_feed_forward": 0,
|
| 17 |
+
"classifier_dropout": null,
|
| 18 |
+
"cross_attention_hidden_size": null,
|
| 19 |
+
"decoder_start_token_id": null,
|
| 20 |
+
"diversity_penalty": 0.0,
|
| 21 |
+
"do_sample": false,
|
| 22 |
+
"early_stopping": false,
|
| 23 |
+
"encoder_no_repeat_ngram_size": 0,
|
| 24 |
+
"eos_token_id": null,
|
| 25 |
+
"exponential_decay_length_penalty": null,
|
| 26 |
+
"finetuning_task": null,
|
| 27 |
+
"forced_bos_token_id": null,
|
| 28 |
+
"forced_eos_token_id": null,
|
| 29 |
+
"gradient_checkpointing": false,
|
| 30 |
+
"hidden_act": "gelu",
|
| 31 |
+
"hidden_dropout_prob": 0.1,
|
| 32 |
+
"hidden_size": 768,
|
| 33 |
+
"id2label": {
|
| 34 |
+
"0": "O",
|
| 35 |
+
"1": "B-action",
|
| 36 |
+
"2": "B-app_data_type",
|
| 37 |
+
"3": "B-app_name",
|
| 38 |
+
"4": "B-app_setting",
|
| 39 |
+
"5": "B-contact_info",
|
| 40 |
+
"6": "B-date",
|
| 41 |
+
"7": "B-device_setting",
|
| 42 |
+
"8": "B-event_title",
|
| 43 |
+
"9": "B-file_name",
|
| 44 |
+
"10": "B-file_size",
|
| 45 |
+
"11": "B-file_type",
|
| 46 |
+
"12": "B-folder_name",
|
| 47 |
+
"13": "B-in_file_data",
|
| 48 |
+
"14": "B-location",
|
| 49 |
+
"15": "B-person_name",
|
| 50 |
+
"16": "B-relationship",
|
| 51 |
+
"17": "B-system_command",
|
| 52 |
+
"18": "B-time",
|
| 53 |
+
"19": "I-action",
|
| 54 |
+
"20": "I-app_data_type",
|
| 55 |
+
"21": "I-app_name",
|
| 56 |
+
"22": "I-app_setting",
|
| 57 |
+
"23": "I-contact_info",
|
| 58 |
+
"24": "I-date",
|
| 59 |
+
"25": "I-device_setting",
|
| 60 |
+
"26": "I-event_title",
|
| 61 |
+
"27": "I-file_name",
|
| 62 |
+
"28": "I-file_size",
|
| 63 |
+
"29": "I-file_type",
|
| 64 |
+
"30": "I-folder_name",
|
| 65 |
+
"31": "I-in_file_data",
|
| 66 |
+
"32": "I-location",
|
| 67 |
+
"33": "I-person_name",
|
| 68 |
+
"34": "I-relationship",
|
| 69 |
+
"35": "I-system_command",
|
| 70 |
+
"36": "I-time"
|
| 71 |
+
},
|
| 72 |
+
"initializer_range": 0.02,
|
| 73 |
+
"intermediate_size": 3072,
|
| 74 |
+
"is_decoder": false,
|
| 75 |
+
"is_encoder_decoder": false,
|
| 76 |
+
"label2id": {
|
| 77 |
+
"B-action": 1,
|
| 78 |
+
"B-app_data_type": 2,
|
| 79 |
+
"B-app_name": 3,
|
| 80 |
+
"B-app_setting": 4,
|
| 81 |
+
"B-contact_info": 5,
|
| 82 |
+
"B-date": 6,
|
| 83 |
+
"B-device_setting": 7,
|
| 84 |
+
"B-event_title": 8,
|
| 85 |
+
"B-file_name": 9,
|
| 86 |
+
"B-file_size": 10,
|
| 87 |
+
"B-file_type": 11,
|
| 88 |
+
"B-folder_name": 12,
|
| 89 |
+
"B-in_file_data": 13,
|
| 90 |
+
"B-location": 14,
|
| 91 |
+
"B-person_name": 15,
|
| 92 |
+
"B-relationship": 16,
|
| 93 |
+
"B-system_command": 17,
|
| 94 |
+
"B-time": 18,
|
| 95 |
+
"I-action": 19,
|
| 96 |
+
"I-app_data_type": 20,
|
| 97 |
+
"I-app_name": 21,
|
| 98 |
+
"I-app_setting": 22,
|
| 99 |
+
"I-contact_info": 23,
|
| 100 |
+
"I-date": 24,
|
| 101 |
+
"I-device_setting": 25,
|
| 102 |
+
"I-event_title": 26,
|
| 103 |
+
"I-file_name": 27,
|
| 104 |
+
"I-file_size": 28,
|
| 105 |
+
"I-file_type": 29,
|
| 106 |
+
"I-folder_name": 30,
|
| 107 |
+
"I-in_file_data": 31,
|
| 108 |
+
"I-location": 32,
|
| 109 |
+
"I-person_name": 33,
|
| 110 |
+
"I-relationship": 34,
|
| 111 |
+
"I-system_command": 35,
|
| 112 |
+
"I-time": 36,
|
| 113 |
+
"O": 0
|
| 114 |
+
},
|
| 115 |
+
"layer_norm_eps": 1e-12,
|
| 116 |
+
"length_penalty": 1.0,
|
| 117 |
+
"max_length": 20,
|
| 118 |
+
"max_position_embeddings": 512,
|
| 119 |
+
"min_length": 0,
|
| 120 |
+
"model_type": "bert",
|
| 121 |
+
"no_repeat_ngram_size": 0,
|
| 122 |
+
"num_attention_heads": 12,
|
| 123 |
+
"num_beam_groups": 1,
|
| 124 |
+
"num_beams": 1,
|
| 125 |
+
"num_hidden_layers": 12,
|
| 126 |
+
"num_return_sequences": 1,
|
| 127 |
+
"output_attentions": false,
|
| 128 |
+
"output_hidden_states": false,
|
| 129 |
+
"output_scores": false,
|
| 130 |
+
"pad_token_id": 0,
|
| 131 |
+
"position_embedding_type": "absolute",
|
| 132 |
+
"prefix": null,
|
| 133 |
+
"problem_type": null,
|
| 134 |
+
"pruned_heads": {},
|
| 135 |
+
"remove_invalid_values": false,
|
| 136 |
+
"repetition_penalty": 1.0,
|
| 137 |
+
"return_dict": true,
|
| 138 |
+
"return_dict_in_generate": false,
|
| 139 |
+
"sep_token_id": null,
|
| 140 |
+
"suppress_tokens": null,
|
| 141 |
+
"task_specific_params": null,
|
| 142 |
+
"temperature": 1.0,
|
| 143 |
+
"tf_legacy_loss": false,
|
| 144 |
+
"tie_encoder_decoder": false,
|
| 145 |
+
"tie_word_embeddings": true,
|
| 146 |
+
"tokenizer_class": null,
|
| 147 |
+
"top_k": 50,
|
| 148 |
+
"top_p": 1.0,
|
| 149 |
+
"torch_dtype": null,
|
| 150 |
+
"torchscript": false,
|
| 151 |
+
"transformers_version": "4.51.3",
|
| 152 |
+
"type_vocab_size": 2,
|
| 153 |
+
"typical_p": 1.0,
|
| 154 |
+
"use_bfloat16": false,
|
| 155 |
+
"use_cache": true,
|
| 156 |
+
"vocab_size": 29000
|
| 157 |
+
},
|
| 158 |
+
"entity_max_length": 8,
|
| 159 |
+
"id2label": {
|
| 160 |
+
"0": "O",
|
| 161 |
+
"1": "action",
|
| 162 |
+
"2": "app_data_type",
|
| 163 |
+
"3": "app_name",
|
| 164 |
+
"4": "app_setting",
|
| 165 |
+
"5": "contact_info",
|
| 166 |
+
"6": "date",
|
| 167 |
+
"7": "device_setting",
|
| 168 |
+
"8": "event_title",
|
| 169 |
+
"9": "file_name",
|
| 170 |
+
"10": "file_size",
|
| 171 |
+
"11": "file_type",
|
| 172 |
+
"12": "folder_name",
|
| 173 |
+
"13": "in_file_data",
|
| 174 |
+
"14": "location",
|
| 175 |
+
"15": "person_name",
|
| 176 |
+
"16": "relationship",
|
| 177 |
+
"17": "system_command",
|
| 178 |
+
"18": "time"
|
| 179 |
+
},
|
| 180 |
+
"id2reduced_id": {
|
| 181 |
+
"0": 0,
|
| 182 |
+
"1": 1,
|
| 183 |
+
"2": 2,
|
| 184 |
+
"3": 3,
|
| 185 |
+
"4": 4,
|
| 186 |
+
"5": 5,
|
| 187 |
+
"6": 6,
|
| 188 |
+
"7": 7,
|
| 189 |
+
"8": 8,
|
| 190 |
+
"9": 9,
|
| 191 |
+
"10": 10,
|
| 192 |
+
"11": 11,
|
| 193 |
+
"12": 12,
|
| 194 |
+
"13": 13,
|
| 195 |
+
"14": 14,
|
| 196 |
+
"15": 15,
|
| 197 |
+
"16": 16,
|
| 198 |
+
"17": 17,
|
| 199 |
+
"18": 18,
|
| 200 |
+
"19": 1,
|
| 201 |
+
"20": 2,
|
| 202 |
+
"21": 3,
|
| 203 |
+
"22": 4,
|
| 204 |
+
"23": 5,
|
| 205 |
+
"24": 6,
|
| 206 |
+
"25": 7,
|
| 207 |
+
"26": 8,
|
| 208 |
+
"27": 9,
|
| 209 |
+
"28": 10,
|
| 210 |
+
"29": 11,
|
| 211 |
+
"30": 12,
|
| 212 |
+
"31": 13,
|
| 213 |
+
"32": 14,
|
| 214 |
+
"33": 15,
|
| 215 |
+
"34": 16,
|
| 216 |
+
"35": 17,
|
| 217 |
+
"36": 18
|
| 218 |
+
},
|
| 219 |
+
"label2id": {
|
| 220 |
+
"O": 0,
|
| 221 |
+
"action": 1,
|
| 222 |
+
"app_data_type": 2,
|
| 223 |
+
"app_name": 3,
|
| 224 |
+
"app_setting": 4,
|
| 225 |
+
"contact_info": 5,
|
| 226 |
+
"date": 6,
|
| 227 |
+
"device_setting": 7,
|
| 228 |
+
"event_title": 8,
|
| 229 |
+
"file_name": 9,
|
| 230 |
+
"file_size": 10,
|
| 231 |
+
"file_type": 11,
|
| 232 |
+
"folder_name": 12,
|
| 233 |
+
"in_file_data": 13,
|
| 234 |
+
"location": 14,
|
| 235 |
+
"person_name": 15,
|
| 236 |
+
"relationship": 16,
|
| 237 |
+
"system_command": 17,
|
| 238 |
+
"time": 18
|
| 239 |
+
},
|
| 240 |
+
"marker_max_length": 128,
|
| 241 |
+
"max_next_context": null,
|
| 242 |
+
"max_prev_context": null,
|
| 243 |
+
"model_max_length": 512,
|
| 244 |
+
"model_max_length_default": 512,
|
| 245 |
+
"model_type": "span-marker",
|
| 246 |
+
"span_marker_version": "1.7.0",
|
| 247 |
+
"torch_dtype": "float32",
|
| 248 |
+
"trained_with_document_context": false,
|
| 249 |
+
"transformers_version": "4.51.3",
|
| 250 |
+
"vocab_size": 29000
|
| 251 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2dda61e60dc2b942729eba0ac7e2fd3730475292c9d79594c7533b10351dad8f
|
| 3 |
+
size 433394300
|
runs/Oct13_12-21-18_2e4e6b33cc2f/events.out.tfevents.1760358151.2e4e6b33cc2f.5538.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a4cbead6ac56df847159d4319bec19a561958d8b22be5062eea1db3d37235c0a
|
| 3 |
+
size 20198
|
runs/Oct13_12-21-18_2e4e6b33cc2f/events.out.tfevents.1760358497.2e4e6b33cc2f.5538.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5323635f166ff723e0e7b4e8ab42d0be35f46b0cd2e4e92f32dacbd641c88564
|
| 3 |
+
size 592
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cls_token": "[CLS]",
|
| 3 |
+
"mask_token": "[MASK]",
|
| 4 |
+
"pad_token": "[PAD]",
|
| 5 |
+
"sep_token": "[SEP]",
|
| 6 |
+
"unk_token": "[UNK]"
|
| 7 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": true,
|
| 3 |
+
"added_tokens_decoder": {
|
| 4 |
+
"0": {
|
| 5 |
+
"content": "[PAD]",
|
| 6 |
+
"lstrip": false,
|
| 7 |
+
"normalized": false,
|
| 8 |
+
"rstrip": false,
|
| 9 |
+
"single_word": false,
|
| 10 |
+
"special": true
|
| 11 |
+
},
|
| 12 |
+
"100": {
|
| 13 |
+
"content": "[UNK]",
|
| 14 |
+
"lstrip": false,
|
| 15 |
+
"normalized": false,
|
| 16 |
+
"rstrip": false,
|
| 17 |
+
"single_word": false,
|
| 18 |
+
"special": true
|
| 19 |
+
},
|
| 20 |
+
"101": {
|
| 21 |
+
"content": "[CLS]",
|
| 22 |
+
"lstrip": false,
|
| 23 |
+
"normalized": false,
|
| 24 |
+
"rstrip": false,
|
| 25 |
+
"single_word": false,
|
| 26 |
+
"special": true
|
| 27 |
+
},
|
| 28 |
+
"102": {
|
| 29 |
+
"content": "[SEP]",
|
| 30 |
+
"lstrip": false,
|
| 31 |
+
"normalized": false,
|
| 32 |
+
"rstrip": false,
|
| 33 |
+
"single_word": false,
|
| 34 |
+
"special": true
|
| 35 |
+
},
|
| 36 |
+
"103": {
|
| 37 |
+
"content": "[MASK]",
|
| 38 |
+
"lstrip": false,
|
| 39 |
+
"normalized": false,
|
| 40 |
+
"rstrip": false,
|
| 41 |
+
"single_word": false,
|
| 42 |
+
"special": true
|
| 43 |
+
},
|
| 44 |
+
"28996": {
|
| 45 |
+
"content": "<start>",
|
| 46 |
+
"lstrip": false,
|
| 47 |
+
"normalized": false,
|
| 48 |
+
"rstrip": false,
|
| 49 |
+
"single_word": false,
|
| 50 |
+
"special": true
|
| 51 |
+
},
|
| 52 |
+
"28997": {
|
| 53 |
+
"content": "<end>",
|
| 54 |
+
"lstrip": false,
|
| 55 |
+
"normalized": false,
|
| 56 |
+
"rstrip": false,
|
| 57 |
+
"single_word": false,
|
| 58 |
+
"special": true
|
| 59 |
+
}
|
| 60 |
+
},
|
| 61 |
+
"clean_up_tokenization_spaces": false,
|
| 62 |
+
"cls_token": "[CLS]",
|
| 63 |
+
"do_lower_case": false,
|
| 64 |
+
"entity_max_length": 8,
|
| 65 |
+
"extra_special_tokens": {},
|
| 66 |
+
"marker_max_length": 128,
|
| 67 |
+
"mask_token": "[MASK]",
|
| 68 |
+
"model_max_length": 512,
|
| 69 |
+
"pad_token": "[PAD]",
|
| 70 |
+
"sep_token": "[SEP]",
|
| 71 |
+
"strip_accents": null,
|
| 72 |
+
"tokenize_chinese_chars": true,
|
| 73 |
+
"tokenizer_class": "BertTokenizer",
|
| 74 |
+
"unk_token": "[UNK]"
|
| 75 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:847d72d9597fea3e0e80eb1727e55f19629c9314d0a2943a405b8ea0bed138f5
|
| 3 |
+
size 5841
|
vocab.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|