azaninello commited on
Commit
e51f461
1 Parent(s): 8736bc8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -75,7 +75,7 @@ def search_engine_collocations(target = 'scarto' , colloc = 'azioni' , nlp = nlp
75
 
76
 
77
  if colloc == 'concetti' and nouns != []:
78
- nouns_fdist = FreqDist(verbs)
79
 
80
  stringed_results = ''
81
  for n,r in enumerate(nouns_fdist.most_common()):
@@ -84,7 +84,7 @@ def search_engine_collocations(target = 'scarto' , colloc = 'azioni' , nlp = nlp
84
  return f"Ho trovato {len(nouns)} concetti legati a '{target}'\n{stringed_results}"
85
 
86
  elif nouns == []:
87
- return f"Non ho trovato concetti legate a '{target}'"
88
 
89
 
90
  demo = gr.Interface(
 
75
 
76
 
77
  if colloc == 'concetti' and nouns != []:
78
+ nouns_fdist = FreqDist(nouns)
79
 
80
  stringed_results = ''
81
  for n,r in enumerate(nouns_fdist.most_common()):
 
84
  return f"Ho trovato {len(nouns)} concetti legati a '{target}'\n{stringed_results}"
85
 
86
  elif nouns == []:
87
+ return f"Non ho trovato concetti legati a '{target}'"
88
 
89
 
90
  demo = gr.Interface(