Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Curio
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jim Wallace
Curio
Commits
131b61ec
Commit
131b61ec
authored
1 year ago
by
Jim Wallace
Browse files
Options
Downloads
Patches
Plain Diff
Trying new compiler directive
parent
6315ee32
No related branches found
No related tags found
No related merge requests found
Pipeline
#108401
passed with warnings
1 year ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Sources/SwiftNLP/2. Embeddings/KeyedVectorCorpus.swift
+9
-1
9 additions, 1 deletion
Sources/SwiftNLP/2. Embeddings/KeyedVectorCorpus.swift
with
9 additions
and
1 deletion
Sources/SwiftNLP/2. Embeddings/KeyedVectorCorpus.swift
+
9
−
1
View file @
131b61ec
...
@@ -21,13 +21,21 @@
...
@@ -21,13 +21,21 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
// OTHER DEALINGS IN THE SOFTWARE.
// OTHER DEALINGS IN THE SOFTWARE.
#if os(Darwin)
#warning("OS = DARWIN")
#else
#warning("OS != DARWIN")
#endif
import
Foundation
import
Foundation
#if canImport(
Surg
e)
#if canImport(
Accelerat
e)
import
Surge
import
Surge
#else
#else
//TODO: Implement Linux alternative with better performance, currently uses naive solution.
//TODO: Implement Linux alternative with better performance, currently uses naive solution.
#endif
#endif
class
KeyedVectorCorpus
:
SNLPCorpus
{
class
KeyedVectorCorpus
:
SNLPCorpus
{
typealias
DocumentEncoding
=
[
Double
]
typealias
DocumentEncoding
=
[
Double
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment