Published
Edited
Dec 1, 2021
1 star
Insert cell
Insert cell
nlp = require("compromise")
Insert cell
out_nlp = nlp(
"Hola, Hola, Hola, esto es una prueba\nSegundo parrafo.\nOtro parrafo"
)
.normalize()
.sentences()
Insert cell
all_tokens = out_nlp.terms().out("frequency").slice(0, 100)
Insert cell
stop_words = "(es|una)"
Insert cell
filtered_terms = nlp("Hola, esto es una prueba\nSegundo parrafo")
.normalize()
.sentences()
.delete(stop_words)
.terms()
.out("frequency")
.slice(0, 100)
Insert cell
places = nlp(
"It will be headed by the representative of the country in the organization, Sergio Chodos. It will take place on days when the Minister of Economy, Martín Guzmán, finalizes the details of a bill that will seek parliamentary support for the 'best understandings' with the Fund, trip to to Paris"
)
.places()
.out("frequency")
Insert cell
people = nlp(
"It will be headed by the representative of the country in the organization, Sergio Chodos. It will take place on days when the minister of economy, Martín Guzmán, finalizes the details of a bill that will seek parliamentary support for the 'best understandings' with the Fund."
)
.people()
.out("frequency")
Insert cell
// no funciona bien en Spanish
//
topics = nlp(
"Chodos is Argentina's representative to the IMF and, in that role, he led several technical meetings with the agency's staff in the last year and a half of negotiations. The contingent will include Raúl Rigo, Secretary of the Treasury, Fernando Morra, Secretary of Economic Policy, Ramiro Tosi, Undersecretary of Financing of the Ministry of Finance, plus two representatives of the Central Bank: Jorge Carrera, Second Vice President, and Germán Feldman, Assistant Manager of Investigations Economical."
)
.topics()
.out("frequency")
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more