1,692 research outputs found

    Semantic Similarity Loss for Neural Source Code Summarization

    Full text link
    This paper presents an improved loss function for neural source code summarization. Code summarization is the task of writing natural language descriptions of source code. Neural code summarization refers to automated techniques for generating these descriptions using neural networks. Almost all current approaches involve neural networks as either standalone models or as part of a pretrained large language models e.g., GPT, Codex, LLaMA. Yet almost all also use a categorical cross-entropy (CCE) loss function for network optimization. Two problems with CCE are that 1) it computes loss over each word prediction one-at-a-time, rather than evaluating a whole sentence, and 2) it requires a perfect prediction, leaving no room for partial credit for synonyms. We propose and evaluate a loss function to alleviate this problem. In essence, we propose to use a semantic similarity metric to calculate loss over the whole output sentence prediction per training batch, rather than just loss for each word. We also propose to combine our loss with traditional CCE for each word, which streamlines the training process compared to baselines. We evaluate our approach over several baselines and report an improvement in the vast majority of conditions.Comment: 20 pages + 8 figures + 5 references. Preprint In Review Aug. 202

    Revisiting File Context for Source Code Summarization

    Full text link
    Source code summarization is the task of writing natural language descriptions of source code. A typical use case is generating short summaries of subroutines for use in API documentation. The heart of almost all current research into code summarization is the encoder-decoder neural architecture, and the encoder input is almost always a single subroutine or other short code snippet. The problem with this setup is that the information needed to describe the code is often not present in the code itself -- that information often resides in other nearby code. In this paper, we revisit the idea of ``file context'' for code summarization. File context is the idea of encoding select information from other subroutines in the same file. We propose a novel modification of the Transformer architecture that is purpose-built to encode file context and demonstrate its improvement over several baselines. We find that file context helps on a subset of challenging examples where traditional approaches struggle.Comment: 27 pages + references, Under peer revie

    The Evaluation And Using Intention For Digital Teaching Materials Of Penghu Basalt

    Get PDF
    The Bureau of Culture of Penghu County produced the Penghu Basalt Digital Teaching Materials, which are supplementary teaching materials for local curriculums in elementary and middle schools in Penghu County. But just what are the teachers’ and students’ opinions of the said teaching materials? Are they willing to use them? Are they suitable? These questions are, indeed, worth further research. The questionnaire survey was conducted to gather the opinions of 142 teachers and 151 students of elementary and middle schools in Penghu County. In addition, using the quasi-experimental and experimental teaching methods, after comparing the pre-test and post-test results to the control group, the learning effectiveness was determined. The results indicate that teachers and students have the highest evaluation for the interface design aspect of this teaching material. The teachers’ evaluation for the teaching materials is significantly higher than the students’. Furthermore, the teaching materials are evaluated highly in terms of attracting attention, generating interest and willingness to use, indicating that the digital teaching materials have potential for promotion in Penghu. After the experimental teaching, only the vocational high school students’ scores before and after the experiment showed significantly improvement, while the scores of the students in the other levels of schools did not. &nbsp

    BUILDING A FACEBOOK EMBEDDED PICTURE BOOK DESIGN LEARNING PLATFORM AND UNDERSTANDING ITS USE INTENTIONS

    Get PDF
    Electronic reading is a process of digitalizing not only the content and reading devices but also the publication and distribution of books. With the development of e-books, more attention has been paid to use of e-books in education. Through online communities and innovative learning models, digital content providers can offer plenty of resources to help learners at all levels and promote the effectiveness of their self-regulated learning. The objective of this study is to build a cloud-based learning platform that integrates designs of electronic picture books and the social functions of Facebook. Students of multimedia design can upload their works to this platform and learn from each other through idea sharing and discussion. This platform is expected to help students create works with better quality and more creativity. Besides, this study also investigates the learning behavior and use intentions of students on this platform based on “Social Interaction Theory” and “Uses and Gratifications Theory”. This study attempts to capture students’ needs and how they are related to their learning outcomes. Results of this study contribute to the development of cloud-based learning and can be a reference for design of learning materials and improvement of teaching models

    Reduced Health-Related Quality of Life in Body Constitutions of Yin-Xu, and Yang-Xu, Stasis in Patients with Type 2 Diabetes: Taichung Diabetic Body Constitution Study

    Get PDF
    Aim. To evaluate how health-related quality of life (HRQOL) and traditional Chinese medicine (TCM) constitutions of Yin-Xu, Yang-Xu, and Stasis are related in type 2 diabetes patients. Method. Seven hundred and five subjects were recruited in 2010 for this study from a Diabetes Shared Care Network in Taiwan. Generic and disease-specific HRQOL were assessed by the short form 36 (SF-36) and the diabetes impact measurement scale (DIMS). Constitutions of Yin-Xu, Yang-Xu, and Stasis were then assessed by the body constitution questionnaire (BCQ), a questionnaire consisting of 44 items that evaluate the physiological state based on subjective symptoms and signs. Results. Estimated effects of the Ying-Xu and Stasis on all scales of the SF-36 were significantly negative, while estimated effects of the Yang-Xu on all scales (except for SF, RE, MH, and MCS) were significantly negative. For DIMS, the estimated effects of the Ying-Xu and Stasis on all scales were significantly negative except for Stasis on well-being, while Yang-Xu has a significantly negative effect only on symptoms. Conclusions. This study demonstrates that TCM constitutions of Yin-Xu, Yang-Xu, and Stasis are closely related to a reduction in HRQOL. These findings support the need for further research into the impact of intervention for TCM constitutions on HRQOL in patients with type 2 diabetes

    Refinement treatment of nasal bone fracture: A 6-year study of 329 patients

    Get PDF
    SummaryBackgroundThe reliability of X-ray radiography for diagnosing nasal bone fractures (NBFs) remains controversial. Recent studies show that, for determining the orientation and location of the displaced/depressed fracture, nasal sonography is as accurate as facial computed tomography. This retrospective study compared conductor-assisted nasal sonography (CANS) to conventional diagnostic tools and reported subjective patient satisfaction and discomfort after closed reduction combined with tube technique.MethodsThis retrospective study reports the results of 329 refinement treatments for nasal bone fracture (including 199 men and 130 women) performed from 2005 to 2011. All patients were assessed with CANS and completed a survey immediately prior to removing the packing. Questionnaires were adapted from the nasal obstruction symptom evaluation (NOSE) scale.ResultsThe study found that CANS has a 97.2% rate of accuracy in diagnosing NBF. The visual analog scale scores of nasal obstruction, nasal congestion, sleep disturbance, trouble breathing, and inability to move air through the nose were analyzed. The experimental group scores were significantly different from the control group for all scores (p < 0.001).ConclusionCompared to conventional methods, CANS is more accurate for detecting NBF. We recommend its use as an alternative tool for diagnosing a nasal fracture. Because the tube technique balances pressure between the nasopharynx and middle ear during swallowing, patient comfort is enhanced. Application of these modifications can improve accuracy in diagnosing NBF and can improve the quality of NBF treatment

    Traditional Chinese Medicine Diagnosis “ Yang-Xu Zheng

    Get PDF
    Pathogenesis of sepsis includes complex interaction between pathogen activities and host response, manifesting highly variable signs and symptoms, possibly delaying diagnosis and timely life-saving interventions. This study applies traditional Chinese medicine (TCM) Zheng diagnosis in patients with severe sepsis and septic shock to evaluate its adaptability and use as an early predictor of sepsis mortality. Three-year prospective observational study enrolled 126 septic patients. TCM Zheng diagnosis, Acute Physiology and Chronic Health Evaluation (APACHE) II score, and blood samples for host response cytokines measurement (tumor necrosis factor-α, Interleukin-6, Interleukin-8, Interleukin-10, Interleukin-18) were collected within 24 hours after admission to Intensive Care Unit. Main outcome was 28-day mortality; multivariate logistic regression analysis served to determine predictive variables of the sepsis mortality. APACHE II score, frequency of Nutrient-phase heat, and Qi-Xu and Yang-Xu Zhengs were significantly higher in nonsurvivors. The multivariate logistic regression analysis identified Yang-Xu Zheng as the outcome predictor. APACHE II score and levels of five host response cytokines between patients with and without Yang-Xu Zheng revealed significant differences. Furthermore, cool extremities and weak pulse, both diagnostic signs of Yang-Xu Zheng, were also proven independent predictors of sepsis mortality. TCM diagnosis “Yang-Xu Zheng” may provide a new mortality predictor for septic patients

    Risk factors and clinical significance of bacteremia caused by Pseudomonas aeruginosa resistant only to carbapenems

    Get PDF
    Background/purposeCarbapenem-resistant Pseudomonas aeruginosa infections have been a challenge and issue in hospital settings. However, the clinical impact of P. aeruginosa blood isolates resistant only to carbapenems has never been discussed previously.MethodsTo assess the risk factors and clinical significance of bacteremia caused by carbapenem resistance only P. aeruginosa (CROPA), a 6-year retrospective case–control study was conducted. The CROPA strains were defined as isolates susceptible to ciprofloxacin, antipseudomonal penicillins and cephalosporins, and aminoglycosides but resistant to one antipseudomonal carbapenem (imipenem or meropenem) or both. The controls were selected among patients with bacteremia due to P. aeruginosa susceptible to all above classes of antipseudomonal antibiotics, which was defined as all-susceptible P. aeruginosa.ResultsTwenty-five patients had at least one blood culture positive for CROPA, and 50 controls had all-susceptible P. aeruginosa bacteremia. CROPA bacteremia had a high 30-day mortality rate (72.0%), as compared to 26.0% for the controls (p < 0.001). Through multivariate analysis, carbapenem exposure was the only risk factor for developing CROPA bacteremia (p = 0.002). A comparison between the surviving and deceased patients with CROPA bacteremia showed that nine (50%) of those who died, but none of the survivors, received carbapenems as the initial empirical therapy (p = 0.027).ConclusionCarbapenem exposure was associated with emergence of CROPA infections. Repeated carbapenem use in such patients might increase rates of inappropriate initial empirical treatment and mortality. Prudent carbapenem use is important to reduce the emergence of CROPA
    • …
    corecore