diff --git a/Sources/SwiftNLP/Resources/all-MiniLM-L6-v2.mlpackage/Data/com.apple.CoreML/FeatureDescriptions.json b/Sources/SwiftNLP/Resources/all-MiniLM-L6-v2.mlpackage/Data/com.apple.CoreML/FeatureDescriptions.json new file mode 100644 index 0000000000000000000000000000000000000000..eb707eb1fe62ba3ff72461ca62870910d1645f5f --- /dev/null +++ b/Sources/SwiftNLP/Resources/all-MiniLM-L6-v2.mlpackage/Data/com.apple.CoreML/FeatureDescriptions.json @@ -0,0 +1,18 @@ +{ + "Outputs" : { + "embeddings" : { + "MLFeatureShortDescription" : "--" + } + }, + "Inputs" : { + "attention_mask" : { + "MLFeatureShortDescription" : "--" + }, + "input_ids" : { + "MLFeatureShortDescription" : "--" + } + }, + "TrainingInputs" : { + + } +} \ No newline at end of file diff --git a/Sources/SwiftNLP/Resources/all-MiniLM-L6-v2.mlpackage/Data/com.apple.CoreML/Metadata.json b/Sources/SwiftNLP/Resources/all-MiniLM-L6-v2.mlpackage/Data/com.apple.CoreML/Metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..8e88cb09ac265796112a90a5c9da806fc05265da --- /dev/null +++ b/Sources/SwiftNLP/Resources/all-MiniLM-L6-v2.mlpackage/Data/com.apple.CoreML/Metadata.json @@ -0,0 +1,10 @@ +{ + "MLModelVersionStringKey" : "--", + "MLModelDescriptionKey" : "This is a sentence-transformers model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search.", + "MLModelCreatorDefinedKey" : { + "com.github.apple.coremltools.version" : "6.3.0", + "com.github.apple.coremltools.source" : "torch==2.0.0" + }, + "MLModelAuthorKey" : "See: https:\/\/huggingface.co\/sentence-transformers\/all-MiniLM-L6-v2", + "MLModelLicenseKey" : "Apache 2.0" +} \ No newline at end of file diff --git a/Sources/SwiftNLP/Resources/all-MiniLM-L6-v2.mlpackage/Data/com.apple.CoreML/model.mlmodel b/Sources/SwiftNLP/Resources/all-MiniLM-L6-v2.mlpackage/Data/com.apple.CoreML/model.mlmodel new file mode 100644 index 0000000000000000000000000000000000000000..08e733ade95f9d2ed325c0e54e3cff4c0afe4e55 Binary files /dev/null and b/Sources/SwiftNLP/Resources/all-MiniLM-L6-v2.mlpackage/Data/com.apple.CoreML/model.mlmodel differ diff --git a/Sources/SwiftNLP/Resources/all-MiniLM-L6-v2.mlpackage/Data/com.apple.CoreML/weights/weight.bin b/Sources/SwiftNLP/Resources/all-MiniLM-L6-v2.mlpackage/Data/com.apple.CoreML/weights/weight.bin new file mode 100644 index 0000000000000000000000000000000000000000..f9d0a4c23111a03fb3051b244c38bd6d85c74b48 Binary files /dev/null and b/Sources/SwiftNLP/Resources/all-MiniLM-L6-v2.mlpackage/Data/com.apple.CoreML/weights/weight.bin differ diff --git a/Sources/SwiftNLP/Resources/all-MiniLM-L6-v2.mlpackage/Manifest.json b/Sources/SwiftNLP/Resources/all-MiniLM-L6-v2.mlpackage/Manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..78866db9ce895b62e7ec8520da778d684f758ce0 --- /dev/null +++ b/Sources/SwiftNLP/Resources/all-MiniLM-L6-v2.mlpackage/Manifest.json @@ -0,0 +1,30 @@ +{ + "fileFormatVersion": "1.0.0", + "itemInfoEntries": { + "0AEDD6A2-E9F2-4EE3-BAAB-52DC12B056B5": { + "author": "com.apple.CoreML", + "description": "External Metadata Overlay", + "name": "Metadata.json", + "path": "com.apple.CoreML/Metadata.json" + }, + "2EBEFE52-B1FD-41CA-AF8D-A6182A411DFF": { + "author": "com.apple.CoreML", + "description": "CoreML Model Specification", + "name": "model.mlmodel", + "path": "com.apple.CoreML/model.mlmodel" + }, + "7E9936A3-D881-4082-82A5-DBA253066429": { + "author": "com.apple.CoreML", + "description": "External FeatureDescription Overlay", + "name": "FeatureDescriptions.json", + "path": "com.apple.CoreML/FeatureDescriptions.json" + }, + "D0238506-E264-4639-9903-0D576FCF89FF": { + "author": "com.apple.CoreML", + "description": "CoreML Model Weights", + "name": "weights", + "path": "com.apple.CoreML/weights" + } + }, + "rootModelIdentifier": "2EBEFE52-B1FD-41CA-AF8D-A6182A411DFF" +}