Nested named entity recognition

If anyone reading this would be interested, I solved it using this discussion