Module ImportFrom alias ImportFrom alias alias alias ImportFrom alias identifier FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot BoolOpAnd Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore BinOpBitOr Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign NameStore Num For NameStore NameLoad body AugAssignAdd NameStore BinOpMult Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq NameLoad Num body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Return BinOpDiv NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot BoolOpAnd Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr If BoolOpAnd UnaryOpNot NameLoad UnaryOpNot NameLoad body Raise Call NameLoad Str Assign NameStore Call NameLoad BinOpBitAnd NameLoad NameLoad Return BinOpDiv NameLoad BinOpSub BinOpAdd Call NameLoad NameLoad Call NameLoad NameLoad NameLoad decorator_list
N/A __future__ absolute_import __future__ division print_function unicode_literals models TfDocumentModel TfModel cosine_similarity N/A N/A evaluated_model reference_model N/A N/A N/A 
    Computes cosine similarity of two text documents. Each document
    has to be represented as TF model of non-empty document.

    :returns float:
        0 <= cos <= 1, where 0 means independence and 1 means
        exactly the same.
     N/A N/A N/A N/A isinstance evaluated_model TfModel N/A isinstance reference_model TfModel N/A N/A N/A ValueError Arguments has to be instances of 'sumy.models.TfDocumentModel' N/A terms N/A N/A frozenset N/A evaluated_model terms N/A frozenset N/A reference_model terms N/A numerator 0.0 N/A term terms N/A N/A numerator N/A N/A N/A evaluated_model term_frequency term N/A N/A reference_model term_frequency term N/A denominator N/A N/A evaluated_model magnitude N/A reference_model magnitude N/A N/A denominator 0.0 N/A N/A N/A ValueError N/A Document model can't be empty. Given %r & %r N/A evaluated_model reference_model N/A N/A numerator denominator N/A unit_overlap N/A N/A evaluated_model reference_model N/A N/A N/A 
    Computes unit overlap of two text documents. Documents
    has to be represented as TF models of non-empty document.

    :returns float:
        0 <= overlap <= 1, where 0 means no match and 1 means
        exactly the same.
     N/A N/A N/A N/A isinstance evaluated_model TfModel N/A isinstance reference_model TfModel N/A N/A N/A ValueError Arguments has to be instances of 'sumy.models.TfDocumentModel' N/A terms1 N/A frozenset N/A evaluated_model terms N/A terms2 N/A frozenset N/A reference_model terms N/A N/A N/A terms1 N/A terms2 N/A N/A N/A ValueError Documents can't be empty. Please pass the valid documents. N/A common_terms_count N/A len N/A terms1 terms2 N/A N/A common_terms_count N/A N/A N/A len terms1 N/A len terms2 common_terms_count N/A