Questions tagged [rouge]

Rouge is an elegant, extendable code highlighter written in pure Ruby.

Rouge supports 72 languages and counting, including Ruby, JavaScript, Swift, Go, C++, and Haskell.

Rouge aims for the highest quality lexing in all its supported languages, even with strange features and odd corner cases.

Rouge themes are 100% compatible with Pygments' stylesheets. No need to remake your theme, and no need to spawn a Python process either. Rouge is made in Ruby

Find more at http://rouge.jneen.net/.

81 questions
1
vote
1 answer

Rouge syntax highlighting in Jekyll: enable start_inline by default?

Is there a way to enable start_inline by default for all code blocks in Rouge? I'm writing a blog using Jekyll 3 (rouge, kramdown) and I have a lot of PHP code blocks. I'd like syntax highlighting to work without having to replace all the ```php…
Matthieu Napoli
  • 48,448
  • 45
  • 173
  • 261
1
vote
1 answer

Kramdown with rogue didn't generate
 wrapper

This is from my pry console: > input = <<-HEREDOC * # Header 1 * ## Header 2 * * ``` * def hello * puts "hello world" * end * ``` * HEREDOC => "# Header 1\n## Header 2\n\n```\ndef hello\n puts \"hello world\"\nend\n```\n" >…
RubyCat
  • 155
  • 11
1
vote
0 answers

custom rouge lexar in github pages?

This might be a yes/no question, because it's still not clear to me what level of Jekyll customization is allowed in Github pages. I've been tinkering a lot with code blocks and syntax highlighting and it seems since sometime in the last 9 months,…
Andy
  • 21
  • 2
1
vote
2 answers

Jekyll Bootstrap with Rouge Highlighting not working on Windows

I have just begun working with Jekyll and it seems like a really neat tool, however I cannot make highlighting to work. I would like to use 'rouge' highlighter for that purpose to use the same tool that will be later used by github pages - but when…
actionjezus6
  • 47
  • 1
  • 5
1
vote
0 answers

Syntax highlighting with rouge in kramdown using NSTask

I'm writing a small markdown editor for OS X. So far I can convert the markdown to HTML and get it appearing in my web view. What I haven't managed yet is to get syntax-highlighting up and running. I'm using kramdown to do the markdown -> HTML bit,…
Paul Patterson
  • 6,840
  • 3
  • 42
  • 56
1
vote
1 answer

Install rouge code highlighter on windows for jekyll

I have ruby for windows installed and working on my Windows 8 64-bit laptop. I also have jekyll installed and working and am able to build and serve a static website built using jekyll. My problem is with syntax highlighting for code snippets in…
Shiva
  • 20,575
  • 14
  • 82
  • 112
0
votes
0 answers

The precision and recall generated from the ROUGE score

I calculated precision and recall from the F1-score, specifically for the ROUGE-1 metric. The ROUGE score is an evaluation metric that compares the generated summary to a reference summary to calculate the overlap between the two in terms of n-gram,…
0
votes
0 answers

Why ROUGE score results are confusing for non-English Languages?

Case 1: t1='match is needed' t2='match is perfect' scorer = rouge_scorer.RougeScorer(['rouge1'], use_stemmer=True) scores = scorer.score(t1,t2) print(scores) O/P: {'rouge1': Score(precision=0.6666666666666666, recall=0.6666666666666666,…
0
votes
0 answers

jekyll rouge rougify output html inline

I have RUBY rougify running in a docker container. I want to send it ~some code~ either via cli or a http POST (I don't mind which). I then want it to respond with the HTML snippet and inline style. I plan to then store this formatted HTML in a DB…
mike
  • 41
  • 3
0
votes
0 answers

Traing/FIne-Tunig T5 model always stucks in evaluation

I'm trying to fine tune a T5 model with C4-200m datasets, when i run the trainer it always stuck at 10%(the 500th step), is it the problem of my GPU or my arguments settings? I am working with wandb to generate my metric. here's the arguments…
0
votes
0 answers

When set up pyrouge on Google Colab

I encountered a problem when I set up pyrouge on Google Colab. I run !which perl !perl runROUGE-test.pl And it throw an error: Cannot open exception db file for reading: mypath/ROUGE-1.5.5/RELEASE-1.5.5/data/WordNet-2.0.exc.db I have tried this…
taro
  • 11
  • 3
0
votes
0 answers

How to calculate the ROUGE measure for the text summarization of multiple docs?

I am trying to calculate the ROUGE-1, ROUGE-2 and ROUGE-l for text summarization of my custom dataset of 153 news articles. I have successfully calculated the ROUGE results for each news article. However, i am in dilemma that whether calculating the…
Bilal Chandio
  • 89
  • 2
  • 9
0
votes
1 answer

Rouge scores are different when using package "datasets" and "rouge_score"

I use 2 packages, "datasets" and "rouge_score" to get the rouge-1 scores. However, the precision and recall are different. I wonder which package produces the correct scores? from rouge_score import rouge_scorer import datasets hyp = ['I have no…
Dammio
  • 911
  • 1
  • 7
  • 15
0
votes
0 answers

How to calculate ROUGE for a multi sentence summary?

I am trying to run several summarization metrics(ROUGE, METEOR, BLEU, CIDEr) on the TAC2010 dataset. I used a python package called nlg-eval (https://github.com/Maluuba/nlg-eval) to do this. I tried both API listed on the github: functional API: for…
NKWBTB
  • 21
  • 4
0
votes
1 answer

How to use markdown code highlighting for Liquid in JekyllRB?

Using JekyllRB/Rouge, how does one highlight (but not interpret) Liquid code within a markdown file? IE: I have a markdown file with: Blah blah blah, my cool post... here's some code: ```liquid {% assign variableName = 'test' %} ``` In the…
saricden
  • 2,084
  • 4
  • 29
  • 40