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
57
votes
3 answers

Text Summarization Evaluation - BLEU vs ROUGE

With the results of two different summary systems (sys1 and sys2) and the same reference summaries, I evaluated them with both BLEU and ROUGE. The problem is: All ROUGE scores of sys1 was higher than sys2 (ROUGE-1, ROUGE-2, ROUGE-3, ROUGE-4,…
Chelsea_cole
  • 1,055
  • 3
  • 15
  • 21
15
votes
1 answer

How do I implement Rouge syntax highlighting in Rails?

There are a bunch of tutorials floating around, but they seem to be incomplete or not fully current or don't fully work for me. This is what I have done. Gemfile: gem 'rouge' gem 'redcarpet' Then I created a config/initializer/rouge.rb: require…
marcamillion
  • 32,933
  • 55
  • 189
  • 380
7
votes
3 answers

Can't locate XML/DOM.pm in @INC (you may need to install the XML::DOM module)

I am new user for the Perl language where executing a Perl script comparison based on ROUGE tool. I didn't get my result on a specific dataset. Please suggest what to do to avoid such type of error. I am getting this error when I execute…
Tushar Hanwate
  • 121
  • 1
  • 1
  • 6
6
votes
3 answers

installing pyrouge gets error in ubuntu

i wants to install pyrouge in Ubuntu for the purpose of text summarization evaluation. i use the instructions in this. first i wrote pip install pyrouge then i must write this command: pyrouge_set_rouge_path…
Mahsa
  • 581
  • 1
  • 9
  • 28
6
votes
3 answers

Prevent line-wraps of code blocks using jekyll, kramdown, and rouge

Using kramdown and rouge for markdown syntax-highlighting in a jekyll blog, I'd like to prevent long lines of code from wrapping onto a new line. I'd like to be able to use a horizontal scrollbar to reveal the rest of the content. Here is the jekyll…
s2t2
  • 2,462
  • 5
  • 37
  • 47
4
votes
1 answer

How to specify a custom language parser alias for rouge in Jekyll 3?

How does one configure Jekyll & Rouge to specify that one language should be highlighted using the parser of another language. For example, I want to be able to do this in my markdown source files: ```nodejs-repl > foo(); Uncaught ReferenceError:…
bguiz
  • 27,371
  • 47
  • 154
  • 243
4
votes
1 answer

Vertical Scroll bars in Jekyll Rouge

Is there anyway to add vertical scroll bars in Jekyll for really long code? I tried adding a Height attribute in _syntax.scss but with no luck. The syntax highlighter I'm using is rouge and the theme I'm using is here:…
Supercap2F
  • 45
  • 4
4
votes
1 answer

Fenced code block not highlighted properly

In Jekyll, when I set the Markdown converter to kramdown and bundle exec jekyll serve, this fenced code block ```javascript function hey(name) { return 'Hey ' + name; } console.log(hey('Brienna')); ``` renders like this: This happens no…
brienna
  • 1,415
  • 1
  • 18
  • 45
4
votes
2 answers

Jekyll for GitHub Pages can't find rouge on Windows

I just installed Jekyll on Windows and I'm trying to make the syntax highlight work with rouge. I have set highlighter: rouge on _config.yml. In the file _posts\2015-08-13-my-first-post.md I got: {% highlight javascript linenos %} var s =…
fredzvt
  • 331
  • 2
  • 8
3
votes
0 answers

Understanding ROUGE vs BLEU

I am looking into metrics for measuring the quality of text-summarization. For this, I have found this SO answer which states: Bleu measures precision: how much the words (and/or n-grams) in the machine generated summaries appeared in the human…
MichaelJanz
  • 1,775
  • 2
  • 8
  • 23
3
votes
1 answer

I can't change jekyll syntax highlighter at my github blog

I made my github blog. I want to change my syntax highlighter to rouge. I do this. gem install rouge rougify style monokai.sublime > assets/css/syntax.css //default.html link href="{{ site.baseurl }}/assets/css/syntax.css" rel="stylesheet" /> //…
azzyjk
  • 127
  • 1
  • 8
3
votes
1 answer

Jekyll serve Conversion error "No such file or directory"

I have followed the installation instructions for Windows, using the "rouge" syntax highlighter. I created new site with "jekyll new" and changed to that folder. However, when I attempt to run "bundle exec jekyll serve" I get following error, which…
3
votes
1 answer

AssertionError when installing pyrouge

pyrouge: 0.1.3 rouge: downloaded from [here][1] since http://www.berouge.com/Pages/default.aspx is not accessable. I have installed XML::DOM and set the rouge path. And I've also tried suggestion from Errors installing Pyrouge. However there are…
amon
  • 41
  • 4
3
votes
1 answer

Is rouge syntax highlighting meant to highlight non-base functions in R?

I'm trying to understand the rouge syntax highlighter and in particular use it to highlight R code. Ultimately it's for a website built with jekyll but I've been able to isolate my problems to just rouge (eg I use rougify on sample code to produce…
Peter Ellis
  • 5,694
  • 30
  • 46
3
votes
3 answers

Jekyll Syntax Highlighting Not Working - Classes Are Not Being Added

I cannot get syntax highlighting to work on my Jekyll-powered blog. The development files can be found here: https://github.com/StevenXL/stevenxl.github.io. As you can see, in my _config.yml file, I have the following: markdown:…
Steven L.
  • 2,045
  • 3
  • 18
  • 23
1
2 3 4 5 6