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/.

72 questions
42
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
  • 885
  • 3
  • 13
  • 21
12
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
  • 29,563
  • 49
  • 161
  • 337
7
votes
2 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
  • 6
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,100
  • 3
  • 29
  • 43
5
votes
2 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
  • 521
  • 8
  • 24
5
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…
aucamort
  • 1,248
  • 12
  • 26
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
  • 321
  • 2
  • 8
3
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
  • 22,661
  • 40
  • 140
  • 226
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

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
  • 35
  • 3
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
  • 4,867
  • 25
  • 42
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.
  • 1,734
  • 3
  • 14
  • 22
2
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,209
  • 2
  • 3
  • 17
2
votes
1 answer

Jekyll with Rouge and KaTeX cannot have $ in code

I am creating a new Jekyll blog setup where I want to self-host and generate server-side everything I can (so basically everything besides Disqus and Google Analytics). I want my site to work well even on browsers with JS turned off, which is why I…
Mateusz Kubuszok
  • 18,063
  • 3
  • 33
  • 53
1
2 3 4 5