-
Notifications
You must be signed in to change notification settings - Fork 0
/
testeProcura.py
52 lines (40 loc) · 2.2 KB
/
testeProcura.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# -*- coding: utf-8 -*-
#!/usr/bin/env python
from procura import Procura
from LeXML import LeXML
texto="""For semantic indexing we proposed the semantic pathfinder,for details see [4].
First, it extracts features from the visual [5],textual, and auditory modality.
The architecture exploits super-vised machine learning to automatically label
segments with semantic concepts. In the first step learning is on the
contentfeatures only. In the second step, the video is analyzed based on its
style properties. Finally, semantic concepts are analyzed in context, with the
potential to boost index results further. The resulting thesaurus of 500 semantic
concepts, covering setting, objects, and people, is learned based on the
LSCOM annotations [6] and the 101 concepts used in our 2005 engine [2].
"""
texto9="""The Internet is now a household term in many countries. With otherwise serious people
beginning to joyride along the Information Superhighway, computer networking seems to be moving
toward the status of TV sets and microwave ovens. The Internet has unusually high media coverage
, and social science majors are descending on Usenet newsgroups, online virtual reality environments,
and the Web to conduct research on the new "Internet Culture."
Of course, networking has been around for a long time. Connecting computers to form local area
networks has been common practice, even at small installations, and so have long-haul links using
transmission lines provided by telecommunications companies. A rapidly growing conglomerate of
world-wide networks has, however, made joining the global village a perfectly reasonable option
for even small non-profit organizations of private computer users. Setting up an Internet host with
mail and news capabilities offering dialup and ISDN access has become affordable, and the advent of
DSL (Digital Subscriber Line) and Cable Modem technologies will doubtlessly continue this trend.
"""
# Esse arquivo vai conter todas as chamadas principais
pr = Procura()
print """
Entre com a opcao desejada:
1. Buscaremota
2. Rede
3. Internet
4. Local
5. Texto
"""
op=raw_input("Escolha: ")
pr.defineConteudo(int(op), texto)
#pr.procurarPontuar("network", texto.lower())