more improvements to interface

This commit is contained in:
Vitor Santos Costa
2012-10-28 18:22:09 +00:00
parent 06051f05fb
commit eb79049bdb
2 changed files with 39 additions and 4 deletions

View File

@@ -1,3 +1,14 @@
/*
import nltk
sentence = """At eight o'clock on Thursday morning
... Arthur didn't feel very good."""
tokens = nltk.word_tokenize(sentence)
tagged = nltk.pos_tag(tokens)
tagged[0:6]
entities = nltk.chunk.ne_chunk(tagged)
entities
*/
:- use_module(library(python)).
:- use_module(library(maplist)).