Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit 4d0239e

Browse files
authored
model: transformers: Add NER models
Signed-off-by: John Andersen <[email protected]>
1 parent 5937825 commit 4d0239e

File tree

26 files changed

+1826
-2
lines changed

26 files changed

+1826
-2
lines changed

.github/workflows/testing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
fail-fast: false
5252
max-parallel: 40
5353
matrix:
54-
plugin: [., examples/shouldi, model/tensorflow, model/tensorflow_hub, model/scratch, model/scikit, source/mysql, feature/git, feature/auth, service/http, configloader/yaml]
54+
plugin: [., examples/shouldi, model/tensorflow, model/tensorflow_hub, model/transformers, model/scratch, model/scikit, source/mysql, feature/git, feature/auth, service/http, configloader/yaml]
5555
python-version: [3.7]
5656

5757
steps:

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88
### Added
9+
- Hugging Face Transformers tensorflow based NER models.
910
- PNG ConfigLoader for reading images as arrays to predict using MNIST trained models
1011
- Docstrings and doctestable examples to `record.py`.
1112
- Inputs can be validated using operations

dffml/service/dev.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
("model", "scratch"),
5151
("model", "scikit"),
5252
("model", "tensorflow_hub"),
53+
("model", "transformers"),
5354
("examples", "shouldi"),
5455
("feature", "git"),
5556
("feature", "auth"),

model/transformers/.coveragerc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[run]
2+
source =
3+
dffml_model_transformer
4+
tests
5+
branch = True
6+
7+
[report]
8+
exclude_lines =
9+
no cov
10+
no qa
11+
noqa
12+
pragma: no cover
13+
if __name__ == .__main__.:

model/transformers/.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
*.log
2+
*.pyc
3+
.cache/
4+
.coverage
5+
.idea/
6+
.vscode/
7+
*.egg-info/
8+
build/
9+
dist/
10+
docs/build/
11+
venv/
12+
wheelhouse/
13+
*.egss
14+
.mypy_cache/
15+
*.swp
16+
.venv/
17+
.eggs/
18+
*.modeldir
19+
*.db
20+
htmlcov/

model/transformers/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Copyright (c) 2019 Intel
2+
3+
MIT License
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

model/transformers/MANIFEST.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
include README.md
2+
include LICENSE
3+
include setup_common.py

model/transformers/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# DFFML Transformers Models
2+
3+
4+
## About
5+
6+
Currently, dffml_model_transformers supports HuggingFace Transformers tensorflow based NER models.
7+
8+
## Documentation
9+
10+
Documentation is hosted at https://intel.github.io/dffml/plugins/dffml_model.html#dffml-model-transformers
11+
12+
## Acknowledgement
13+
14+
dffml_model_transformers derives code from ![examples available on Transformers git repo.](https://github.com/huggingface/transformers/tree/master/examples), ![License](https://github.com/huggingface/transformers/blob/master/LICENSE)
15+
16+
## License
17+
18+
Transformers Models are distributed under the terms of the
19+
[MIT License](LICENSE).

model/transformers/dffml_model_transformers/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)