-
-
Save formigarafa/1002552 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'logger' | |
class String | |
LOGGER = Logger.new($stderr) | |
def -@; LOGGER.info self; end | |
end | |
# Extracted earlier, hardcoded for speed | |
ENTITIES = %w(I-ORG O I-MISC I-PER I-LOC B-LOC B-MISC MO B-ORG) | |
- 'started parsing training data' | |
TRAINING_DATA = CONLL03.parse_file(STDIN) | |
- 'finished parsing training data' | |
model = Perceptron.new ENTITIES, CONLL03.labels |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment