You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wikipedia-kyoto-japanese-english: increase REXML entity expansion limit during XML parsing (#198)
Using `Datasets::WikipediaKyotoJapaneseEnglish#each` raised an `entity
expansion has grown too large (RuntimeError)`. This error occurs because
the entity expansion limit in REXML is set by
ruby/rexml#187, and
`Datasets::WikipediaKyotoJapaneseEnglish#each` exceeds that limit.
In Red Datasets, increasing the entity expansion limit is not a problem
because we want to handle large datasets.
Therefore, we temporarily increase the limit.
## How to reproduce
```console
$ cd red-datasets && bundle
$ bundle exec ruby example/wikipedia-kyoto-japanese-english.rb
...
/home/otegami/.rbenv/versions/3.3.3/lib/ruby/gems/3.3.0/gems/rexml-3.3.4/lib/rexml/parsers/baseparser.rb:560:in `block in unnormalize': entity expansion has grown too large (RuntimeError)
...
```
0 commit comments