You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
62 lines
2.5 KiB
Tcl
62 lines
2.5 KiB
Tcl
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
|
|
|
|
PortSystem 1.0
|
|
PortGroup python 1.0
|
|
|
|
name py-sentence-transformers
|
|
version 5.3.0
|
|
revision 0
|
|
|
|
categories-append textproc
|
|
license Apache-2
|
|
maintainers nomaintainer
|
|
platforms {darwin any}
|
|
supported_archs noarch
|
|
|
|
description Sentence Embeddings using BERT / RoBERTa / XLM-R
|
|
long_description This framework provides an easy method to compute \
|
|
dense vector representations for sentences, \
|
|
paragraphs, and images. The models are based on \
|
|
transformer networks like BERT / RoBERTa / \
|
|
XLM-RoBERTa etc. and achieve state-of-the-art \
|
|
performance in various task. Text is embedding in \
|
|
vector space such that similar text is close and \
|
|
can efficiently be found using cosine similarity. \
|
|
We provide an increasing number of \
|
|
state-of-the-art pretrained models for more than \
|
|
100 languages, fine-tuned for various use-cases. \
|
|
Further, this framework allows an easy fine-tuning \
|
|
of custom embeddings models, to achieve maximal \
|
|
performance on your specific task.
|
|
|
|
homepage https://www.sbert.net
|
|
|
|
distname sentence_transformers-${version}
|
|
|
|
checksums rmd160 84051b2928e144db6bc399508d3bdbb6f4ae229e \
|
|
sha256 414a0a881f53a4df0e6cbace75f823bfcb6b94d674c42a384b498959b7c065e2 \
|
|
size 403330
|
|
|
|
python.versions 310 311 312 313 314
|
|
|
|
if {${name} ne ${subport}} {
|
|
depends_run-append \
|
|
port:py${python.version}-huggingface_hub \
|
|
port:py${python.version}-numpy \
|
|
port:py${python.version}-pytorch \
|
|
port:py${python.version}-scikit-learn \
|
|
port:py${python.version}-scipy \
|
|
port:py${python.version}-tqdm \
|
|
port:py${python.version}-transformers \
|
|
port:py${python.version}-typing_extensions
|
|
|
|
post-destroot {
|
|
set docdir ${prefix}/share/doc/${subport}
|
|
xinstall -d ${destroot}${docdir}
|
|
xinstall -m 0644 -W ${worksrcpath} LICENSE README.md \
|
|
${destroot}${docdir}
|
|
}
|
|
|
|
test.run yes
|
|
}
|