Skip to content

Instantly share code, notes, and snippets.

View KavithaShanmugam's full-sized avatar

KavithaShanmugam

View GitHub Profile
@KavithaShanmugam
KavithaShanmugam / ner.py
Last active August 21, 2016 20:54 — forked from anonymous/gist:4fa107c4a9c15ed01b2b
Submission for task Named Entity Recognition @http://codepad.org/LLRQAd9q,
"""
This is an simple implementation of a Named Entity Recognition (NER) from given text.
Here I have implemented a method to extract the names using NLTK (Natural Language Toolkit) instead of using Regular expression.
This is the very effective method to extract the names from the given text.
Steps:
******
1) Install the nltk package. Here is the instruction link
@KavithaShanmugam
KavithaShanmugam / iter_sample.py
Last active August 21, 2016 20:20 — forked from anonymous/gist:490c74a6473425fdaa88
Python coding task: "iter_sample" @http://codepad.org/9NdtMCJh
"""
Programming task
================
Implement the method iter_sample below to make the Unit test pass. iter_sample
is supposed to peek at the first n elements of an iterator, and determine the
minimum and maximum values (using their comparison operators) found in that
sample. To make it more interesting, the method is supposed to return an
iterator which will return the same exact elements that the original one would
@KavithaShanmugam
KavithaShanmugam / ner.py
Last active August 21, 2016 20:35 — forked from anonymous/gist:8bd99eddc5ff4b682285
Python coding task: "Named Entity Recognition" @http://codepad.org/LLRQAd9q
"""
This is an simple implementation of a Named Entity Recognition (NER) from given text.
Here I have implemented a method to extract the names using NLTK (Natural Language Toolkit) instead of using Regular expression.
This is the very effective method to extract the names from the given text.
Steps:
******
1) Install the nltk package. Here is the instruction link