Logo
  • Installation
    • Recommended Install
    • Full Install
      • Setup
        • Linux
        • OSX (with brew)
        • Install (pip)
        • Install (Anaconda)
        • Install (GitHub)
      • Install Other Dependencies
        • Load NLTK corpus
        • Install Stanford Parser
        • Install Tweet NLP v0.3 (ark-tweet-nlp-0.3)
        • Python Modules (optional)
        • Install the IBM Wordcloud jar file (optional)
        • Mallet (optional)
    • Full List of Dependencies
      • Python
      • Other
      • Python (optional)
      • Other (optional)
    • Python version support
    • Getting Started
      • Command Line Interface
      • MySQL Configuration
      • Sample Datasets
      • Next Steps
    • Install Issues
  • Github Repo
  • Getting started in Colab
  • Tutorials
    • Getting started
    • Text Cleaning and Transformations
    • Feature Extraction
    • Viewing your data and output
    • Prediction
    • Clustering
    • LDA with Mallet
    • Data Engines
    • Other Topics
    • Video Tutorials
  • Packaged Datasets
    • Language Data
      • Blog Authorship Corpus
    • Lexica
      • Age and Gender Lexica
      • PERMA Lexicon
      • Spanish PERMA Lexicon
      • Other Lexica
    • LDA Topics
      • 2000 Facebook Topics
  • dlatkInterface Flags by type
    • Setup
    • Preprocessing
    • Feature Extraction
    • Feature Refinement
    • Language Insights
    • Clustering
    • Prediction
      • Regression
      • Classification
    • Visualization
  • Papers Utilizing DLATK
    • DLATK Paper
    • Peer Reviewed Publications
      • 2020
      • 2019
      • 2018
      • 2017
      • 2016
      • 2015
      • 2014
      • 2013
DLATK
  • --print_numgroups
  • View page source

--print_numgroups

Switch

--print_numgroups

Description

Prints the number of groups available for each outcome field.

Argument and Default Value

No argument. Boolean switch, default: False.

Details

Known issue — crashes when used on its own. The handler is:

if args.printnumgroups:
    pprint(args)
    if not oa: oa = OA()
    if not fg: fg = FG()
    pprint(('number of groups per outcome:', og.numGroupsPerOutcome(fg, args.printcsv)))

It initializes oa/fg if missing, but never initializes og (the OutcomeGetter) — yet it's og.numGroupsPerOutcome(...) that's called. Verified: --print_numgroups fails with AttributeError: 'NoneType' object has no attribute 'numGroupsPerOutcome' both on its own and combined with --correlate (which only initializes oa/fg, not og, either). No working combination was found; as of this writing there is no way to run this switch successfully.

Separately, note args.printcsv (i.e. --print_csv's value) is passed in as numGroupsPerOutcome's outputfile argument, but that function never uses its outputfile parameter — output always goes to stdout via pprint() regardless of what (if anything) you pass to --print_csv.

Other Switches

Required Switches:

  • None (flag currently cannot complete successfully — see Known issue above)

Example Commands

Not usable as of this writing — see Known issue above.


© Copyright 2024, H. Andrew Schwartz and Salvatore Giorgi.

Built with Sphinx using a theme provided by Read the Docs.