예제 #1
0
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())

print "Categoria: ", pr.obtemCategoria().upper()
print "\tPontos: \t[" , pr.obtemPontuacao() , "]"
print "\tRelevancia: \t[", pr.fuzzinator().upper() , "]"
print "\tPontos por palavra: \t[" , int(pr.obtemPontosPorPalavra()), "]"

예제 #2
0
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())

print "Categoria: ", pr.obtemCategoria().upper()
print "\tPontos: \t[", pr.obtemPontuacao(), "]"
print "\tRelevancia: \t[", pr.fuzzinator().upper(), "]"
print "\tPontos por palavra: \t[", int(pr.obtemPontosPorPalavra()), "]"