Views
No views yet
markussagen/xlm-roberta-longformer-base-4096 (multilingual XLM-RoBERTa extended to 4096-token contexts)sentence-transformers/paraphrase-multilingual-mpnet-base-v2) reaches cosine similarity > 0.70 with any summary sentence. Semantic supervision replaces the fuzzy lexical matching of prior work, which is what makes this work multilingual.sigext-<corpus>-<backbone>-<samples>-<threshold> — this model is one point of a grid swept over corpus (wits-it / arxiv-en), backbone (xlmr / allenai), training-set size (1k / 2500 / 5k) and S-BERT labeling threshold (0.60 / 0.70 / 0.80). See the collection for the other configurations.-100 elsewhere)1from transformers import AutoTokenizer, AutoModelForTokenClassification
2import torch
3
4name = "LookUpMark/sigext-wits-it-xlmr-5k-070t"
5tok = AutoTokenizer.from_pretrained(name)
6model = AutoModelForTokenClassification.from_pretrained(name)
7
8inputs = tok(document, return_tensors="pt", truncation=True, max_length=2048)
9with torch.no_grad():
10 preds = torch.argmax(model(**inputs).logits, dim=2)[0]
11
12salient = [t for t, p in zip(inputs.tokens(), preds.tolist()) if p == 1]
13print(tok.decode(tok.convert_tokens_to_ids(salient)))2024.emnlp-industry.4)Research artifact: intermediate checkpoints of a course-project grid sweep, shared for reproducibility. Each configuration was trained with identical hyperparameters; only corpus, backbone, data size and labeling threshold differ.