SRM-CSR: unsupervised aspect category detection based on semantic-aware relevance modeling and contextual sentence representation.
The 1 match
- [1] § Experiments › Implementation details ↔ code/preprocess.py, lines 6–12 · score 0.75 · CountVectorizer, WordNetLemmatizer, lemmatized, stopword, tokenizing, English
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
Python · 51 lines · 1.8 KB · Apache-2.0 · 1 match
- from sklearn.feature_extraction.text import CountVectorizer
- from nltk.corpus import stopwords
- from nltk.stem.wordnet import WordNetLemmatizer
- import codecs
- def parseSentence(line):
- lmtzr = WordNetLemmatizer()
- stop = stopwords.words('english')
- text_token = CountVectorizer().build_tokenizer()(line.lower())
- text_rmstop = [i for i in text_token if i not in stop]
- text_stem = [lmtzr.lemmatize(w) for w in text_rmstop]
- return text_stem
- def preprocess_train(domain):
- f = codecs.open('../datasets/'+domain+'/train.txt', 'r', 'utf-8')
- out = codecs.open('../preprocessed_data/'+domain+'/train.txt', 'w', 'utf-8')
- for line in f:
- tokens = parseSentence(line)
- if len(tokens) > 0:
- out.write(' '.join(tokens)+'\n')
- def preprocess_test(domain):
- # For restaurant domain, only keep sentences with single
- # aspect label that in {Food, Staff, Ambience}
- f1 = codecs.open('../datasets/'+domain+'/test.txt', 'r', 'utf-8')
- f2 = codecs.open('../datasets/'+domain+'/test_label.txt', 'r', 'utf-8')
- out1 = codecs.open('../preprocessed_data/'+domain+'/test.txt', 'w', 'utf-8')
- out2 = codecs.open('../preprocessed_data/'+domain+'/test_label.txt', 'w', 'utf-8')
- for text, label in zip(f1, f2):
- label = label.strip()
- if domain == 'restaurant' and label not in ['Food', 'Staff', 'Ambience']:
- continue
- tokens = parseSentence(text)
- if len(tokens) > 0:
- out1.write(' '.join(tokens) + '\n')
- out2.write(label+'\n')
- def preprocess(domain):
- print '\t'+domain+' train set ...'
- preprocess_train(domain)
- print '\t'+domain+' test set ...'
- preprocess_test(domain)
- print 'Preprocessing raw review sentences ...'
- preprocess('restaurant')
- preprocess('beer')
preprocess.py at commit 1b17f1f, under Apache-2.0 · at the source
Overview
- School of Computer Science and Engineering, Macau University of Science and Technology, Macau, 999078 China
- School of Economics, Fuyang Normal University, Fuyang, 236041 China
- College of Computer Information and Engineering, Nanchang Institute of Technology, Nanchang, 330044 China
- Zhuhai M.U.S.T. Science and Technology Research Institute, Zhuhai, 519000 China
Abstract
The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.
Repositories
Its files are read in the Code ↔ Paper reader above, with 1 match between paragraphs and lines of code.
ruidan/unsupervised-aspect-extraction
1b17f1f65d7d562fc25b9538ee0238ec9da32df7, 9 December 2019Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
13 files
- code/
evaluation.py , Python, 146 lines - code/
model.py , Python, 67 lines - code/
my_layers.py , Python, 195 lines - code/
optimizers.py , Python, 21 lines - code/
preprocess.py , Python, 51 lines, 1 match - code/
reader.py , Python, 113 lines - code/
run_script.sh , Shell, 7 lines - code/
train.py , Python, 175 lines - code/
utils.py , Python, 165 lines - code/
w2vEmbReader.py , Python, 71 lines - code/
word2vec.py , Python, 26 lines - LICENSE.txt, License, 201 lines
- README.md, Text, 73 lines
teapot123/JASen
c9dc8720ce3edbe16e5dd67f1be3c63b54b30580, 22 October 2020Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
6 files
- evaluate.py, Python, 611 lines
- model.py, Python, 90 lines
- run_jasen.sh, Shell, 73 lines
- src/
joint.c , C, 1,699 lines - src/
margin.c , C, 1,158 lines - README.md, Text, 30 lines
The paper's code and data availability statement is in the Data section.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 16 scripts, each with its path and the digest of its content;
- 1 match between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
No dataset and no data link were found in the paper.
Code and data availability statement
The paper has a code and data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- it points to the authors' code: ruidan/
unsupervised-aspect-extr , teapot123/action JASen
Read it in the paper: doi.org/10.1038/s41598-026-55299-x.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 4 authors, 6 keywords, 1 funder, 10 references.
Cite
This paper
Xu, Y., Mu, X., Liu, K., & Li, D. (2026). SRM-CSR: unsupervised aspect category detection based on semantic-aware relevance modeling and contextual sentence representation. Scientific reports, 16(1), 24980. https://
BibTeX
@article{xu2026srm,
author = {Xu, Yao and Mu, Xian and Liu, Ketong and Li, Dagang},
title = {{SRM-CSR: unsupervised aspect category detection based on semantic-aware relevance modeling and contextual sentence representation}},
journal = {Scientific reports},
year = {2026},
month = jun,
volume = {16},
number = {1},
pages = {24980},
publisher = {Nature Publishing Group},
issn = {2045-2322},
doi = {10.1038/
url = {https://
pmid = {42225841},
pmcid = {PMC13462333}
}
RIS
TY - JOUR
AU - Xu, Yao
AU - Mu, Xian
AU - Liu, Ketong
AU - Li, Dagang
TI - SRM-CSR: unsupervised aspect category detection based on semantic-aware relevance modeling and contextual sentence representation
T2 - Scientific reports
J2 - Sci Rep
PY - 2026
DA - 2026/
VL - 16
IS - 1
SP - 24980
SN - 2045-2322
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "SRM-CSR: unsupervised aspect category detection based on semantic-aware relevance modeling and contextual sentence representation",
"container-title": "Scientific reports",
"author": [
{
"family": "Xu",
"given": "Yao"
},
{
"family": "Mu",
"given": "Xian"
},
{
"family": "Liu",
"given": "Ketong"
},
{
"family": "Li",
"given": "Dagang"
}
],
"container-title-short":
"volume": "16",
"issue": "1",
"page": "24980",
"DOI": "10.1038/
"PMID": "42225841",
"PMCID": "PMC13462333",
"ISSN": "2045-2322",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
1
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1126/sciadv.aed3650 [code]
- Truthful visualizations for mass spectrometry imaging enable high-spatial-resolution interactive &
lt;i& gt;m/ z& lt;/ i& gt; mapping and exploration. Journal: Science advancesIn common: Keras, PyTorch, scikit-learn, 1 other tool, methods / tools - [2] doi:10.1371/journal.pone.0347867 [code]
- LiteFeatNet: A parameter-efficient and performance-centric deep learning model for multi-ocular disease identification using intermediate feature reduction from fundus images.Journal: PloS oneIn common: Keras, PyTorch, scikit-learn, 1 other tool, methods / tools
- [3] doi:10.1002/nbm.70263 [code]
- Cross-Site Generalization of CNN-Based $$ {B}_1^{+} $$ Mapping in UHF MRI.Journal: NMR in biomedicineIn common: Keras, PyTorch, scikit-learn, 1 other tool, methods / tools
- [4] doi:10.1038/s41592-026-03057-2 [code]
- CREsted: modeling genomic and synthetic cell-type-specific enhancers across tissues and species.Journal: Nature methodsIn common: Keras, PyTorch, scikit-learn, 1 other tool, methods / tools
- [5] doi:10.1038/s41597-025-05174-7 [code]
- A large-scale MEG and EEG dataset for object recognition in naturalistic scenesJournal: n/aIn common: Keras, PyTorch, scikit-learn, 1 other tool, methods / tools
- [6] doi:10.1038/s42003-026-10957-8 [code]
- Brain defence by the extracellular matrix protein Cochlin.Journal: Communications biologyIn common: Keras, PyTorch, scikit-learn, 1 other tool
- [7] doi:10.1126/sciadv.aee6952 [code]
- Wafer-scale SOT-MRAM for analog crossbar array applications.Journal: Science advancesIn common: Keras, PyTorch, scikit-learn, 1 other tool
- [8] doi:10.1371/journal.pcbi.1014615 [code]
- Toward reliable machine learning models for neural circuit inference: A diagnostic study of CNNs on spike trains.Journal: PLoS computational biologyIn common: Keras, PyTorch, scikit-learn, 1 other tool
- [9] doi:10.1002/pro.70695 [code]
- MIF-MAPMS: Enhancing identification of myelin autoantigenic peptides in multiple sclerosis through multimodal information fusion.Journal: Protein science : a publication of the Protein SocietyIn common: Keras, PyTorch, scikit-learn, 1 other tool
- [10] doi:10.1371/journal.pcbi.1014571 [code]
- SynAPSeg: A novel dataset and image analysis framework for deep learning-based synapse detection and quantification.Journal: PLoS computational biologyIn common: Keras, PyTorch, scikit-learn, 1 other tool
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 2 repositories of the authors' code, each at its verified commit and with its license, 16 scripts, and 1 match between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:f65cc2fe7f06bbc0…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
