Views
No views yet
from transformers import AutoTokenizer, AutoModel
# Invasion biology model
model = AutoModel.from_pretrained("CLAUSE-Bielefeld/SemCSE-Multi-Invasion-Biology", trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained("CLAUSE-Bielefeld/SemCSE-Multi-Invasion-Biology")
text = "This is a scientific abstract from the domain of invasion biology."
batch = tokenizer([text], return_tensors='pt')
# Get the embedding for the "species" aspect. Other options are: "hypothesis", "ecosystem", "researchquestion", "methodology" and "recommendation".
output = model(**batch)["species"]
# The resulting embeddings can be used for similarity assessments using cosine similarity.1@misc{brinner2025semcsemultimultifaceteddecodableembeddings,
2 title={SemCSE-Multi: Multifaceted and Decodable Embeddings for Aspect-Specific and Interpretable Scientific Domain Mapping},
3 author={Marc Brinner and Sina Zarrieß},
4 year={2025},
5 eprint={2510.11599},
6 archivePrefix={arXiv},
7 primaryClass={cs.CL},
8 url={https://arxiv.org/abs/2510.11599},
9}