Questions tagged [text]

Questions relating to working with textual information: textual analysis, data mining, etc.

Filter by
Sorted by
Tagged with
1 vote
2 answers
106 views

Change style of the above cell

How can I change the style of a given cell, by writing some code on the cell directly below the cell and executing it? ...
user avatar
  • 2,451
2 votes
1 answer
65 views

Text cell numbering

For input cells and output cells, there are automatic,natural numbering. In[1] 2+2 Out[1] 4 I mean In[1] and Out...
user avatar
  • 2,451
0 votes
0 answers
25 views

SubscriptBox Text font in Graphics[Text[Style["..."]]]

In this code in Graphics and Text Style, Graphics[Text[ Style["!(N_b)\n U(1!(*SubscriptBox[()), (V)])"]]] I obtain the $V$ in italic font, but I wanted ...
user avatar
  • 823
2 votes
0 answers
37 views

Computing maximal FontSize to fill a rectangle?

I'd like to compute the proper FontSize for a given piece of text to fill a given Rectangle. ...
user avatar
  • 3,720
-1 votes
1 answer
58 views

Identifying capitalized words in a text analysis [closed]

I would like to be able to identify those sentences that have a capitalized word somethere OTHER than the beginning of the sentence: Be it so, then I answer'd, I too haughty Shade also sing war, and a ...
user avatar
  • 97
1 vote
1 answer
52 views

Can WordFrequencyData run faster?

I want the WordFrequencyData of the whole WordList[] However it takes too long to get the result. ...
user avatar
2 votes
0 answers
73 views

FeatureExtraction[] for Text -- to normalize text or not?

The title pretty much captures my question. When I use FeatureExtraction[] for text, should I normalize text before parsing it through ...
user avatar
  • 5,172
1 vote
0 answers
39 views

Finding a root word

w = "successfully"; {DictionaryWordQ[#], WordDefinition[#], PartOfSpeech[#], WordData[#]} &@w ...
user avatar
  • 14.6k
0 votes
1 answer
65 views

Go to line Out[422] in a current working .nb

When working myfile.nb with mathematica, I don't know how to search or goto the lines In[529] or Out[422], in mathematica. Ctrl+...
user avatar
  • 2,451
5 votes
2 answers
153 views

Align paragraph text to left (not just first line)

The following looks wrong to me, how can I fix the alignment for the whole paragraph? ...
user avatar
  • 3,720
3 votes
1 answer
70 views

What is the function/purpose of \!\(...\) in Graphics?

In Graphics, we input the Text form "\!\(10m prize\)", but it outputs "10 m ...
user avatar
  • 823
1 vote
0 answers
40 views

How to label a contour in ContourPlot with arbitrary text

I want to put a label on a contour in the ContourPlot with a text, but I can not do it. I have read all questions about this issue in the slack, but I could not find an answer to it. Let say, I want ...
user avatar
  • 99
4 votes
1 answer
86 views

Antialiasing doesn't work for small text, when using Polygons with holes

I have a weird problem with antialiasing of small text and Polygons. If I use Polygon with holes poly1->poly2, Antialiasing doesn't work, although I used ...
user avatar
5 votes
1 answer
39 views

Importing textual data removes some letters

I have the following file TSV file p.txt containing a single line of 3 values: "22p" "22o" "22u"...
user avatar
  • 347
3 votes
1 answer
61 views

Importing text generates whitespaces between every character

I have a TSV file with string data in it that I want to import. While the TSV format is correctly parsed into a Mathematica table format using ...
user avatar
  • 347
2 votes
0 answers
82 views

How to write on a surface?

How do I include text on a curved surface? For example, and as a starting point, how can I reproduce the following image I've seen some examples where people geometrically described letters to do ...
user avatar
  • 4,138
3 votes
2 answers
111 views

Remove words from a string that contain special characters

I have a string like this: string="there is a humble-bee in Hanna's garden"; Now I want to exclude those words that contain "-" and "'"...
user avatar
  • 669
1 vote
0 answers
28 views

How to draw a line marking where each chapter occurs in a text? [duplicate]

I am performing a text analysis on C.S. Lewis's book The Lion, the Witch, and the Wardrobe. I have created the following analysis of textual occurences of Aslan or Lion, Peter, Lucy, Edmund, Susan, ...
user avatar
1 vote
1 answer
49 views

How put a value in a legend

I am trying to put in a legend a value calculated previously but as you can see by your self the output is so stranger. ...
user avatar
1 vote
1 answer
85 views

Rotate the label when rotating the output image with graphics3D

I am interested in drawing a labelled dashed line through points p1 and p2 with Graphics3D. ...
user avatar
  • 169
3 votes
1 answer
61 views

Probably easy question: How to make the Text font in the subscript?

In the specific Graphic setting, precisely (somehow \ ( and \ ) are not shown properly below in Stackexchange window) Graphics[Text[Style["\ !\ (1234_L\ )",LineSpacing->{0,12}],{0,3}]] ...
user avatar
  • 823
0 votes
0 answers
44 views

scrape App Store web data

I want to scrape the privacy information of an app on the web store page. For example, the Tiktok app information looks like this: tiktok on us app store I found that it's easy to scrape that ...
user avatar
  • 591
4 votes
1 answer
227 views

Writing a document-like Text

Imagine I have the following code Graphics[{LightBlue, Rectangle[], Black, Text["Hello", {.1, .9}]}] If I had more text to the ...
user avatar
  • 4,138
2 votes
0 answers
57 views

Inverse Dictionary Lookup

Example: Using WordDefinition: WordDefinition["surreptitious"] ...
user avatar
  • 14.6k
13 votes
1 answer
398 views

Wolfram Neural Net Repository Questions

I am a research scientist in the machine learning team, and mostly involved with the neural net repository. One of the discussions with my group raised these question in my mind, and these might be ...
user avatar
4 votes
1 answer
207 views

Copy clipboard content to mathematica notebook - line break symbol changes

There are 3 kinds of line breaks \r \n \r\n For windows, \r\n is standard. Suppose that there is a file called document.txt, using \r or \r\n as line breaks. Suppose that I open document.txt with a ...
user avatar
  • 2,451
18 votes
1 answer
342 views

Intelligent text search on large directories of notebooks?

I have a (deeply nested) directory containing 10s of thousands of wolfram files (mostly notebooks (nbs), but also scripts (.wls), packages (.m, .q wl), my and wxf data) and many subfolders each with a ...
user avatar
  • 30.3k
2 votes
0 answers
43 views

Label in traditionalform with text

I want to have a figure with a label x_P, in style of LaTeX, TraditionalForm[Style[Subscript[x, P], FontSize -> 24]] But ...
user avatar
0 votes
2 answers
47 views

How to copy a specific parameter from imported text file

I am working with the imported text files in Mathematica. Each text file has experimental data, measured at a several input parameter like "Field (V/cm):" How to ask Mathematica to copy the ...
user avatar
  • 973
0 votes
0 answers
36 views

Make a bar chart of the lengths of the words in“A long time ago,in a galaxy far,far away"

The expected output and the output obtained both are same, but why is it showing it wrong. All the desired functions have been used,
user avatar
0 votes
0 answers
22 views

Be able to adjust the 'text' or contents of the grid

Ok....This is MMA 12.2 -- I've been on this for some days now. Not hardcore time spent, but I've put in quite a few hours and am making no progress now. It's just a project for myself mostly, but I do ...
user avatar
  • 636
5 votes
0 answers
172 views

How to train custom named entity recognition?

Version 12 has basic NER support for some entities, but how does one recognize a custom entity? For example, I want to parse text describing products, and parse out three entities: prices, size, and ...
user avatar
  • 30.3k
1 vote
1 answer
59 views

How to align Text within Graphics?

Consider the code ...
user avatar
  • 4,138
1 vote
1 answer
51 views

Selecting parts of an expression via mouse clicks [closed]

Is there a very easy way to select (=highlight) FunC[FunD[FunE[x]]] in the following code? FunA[FunB[FunC[FunD[FunE[x]]]]]
user avatar
  • 2,451
0 votes
3 answers
51 views

Add text between two charts on a BarChart

I have the following list : ...
user avatar
2 votes
2 answers
127 views

How can I place multiple inset text boxes within the viewport produced with Show

I'd like to ultimately have 3 inset boxes for information of 3 different lines on my graph. In order to minimalise the example I've just attempted 2 here, but the result is the same, that only the ...
user avatar
  • 467
1 vote
0 answers
86 views

Line spacing when creating new line

I have a plot which has a legend where text occasionally needs two lines. While I'm able to adjust the space between labels using "Spacings" how can I change the line-spacing within a label ...
user avatar
  • 941
3 votes
1 answer
218 views

Facing text in 3D graphics with full options

I'm seeking a refinement/extension of the excellent and very valuable solution appearing here. That solution indeed allows you to place text anywhere in a 3D graphics and then rotate it (by Euler ...
user avatar
10 votes
2 answers
234 views

Inline TeX Input renders wrong characters / symbols

Bug introduced in 12.2, fixed in 13.0. As you may know, you can write TeX within a cell with CTR+$ and press ...
user avatar
  • 141
5 votes
2 answers
400 views

Can this effect be achieved with Mathematica?

This is a very cool artistic simple tooling black and white text effect that would appear to be possible using Mathematica's animation tool. How can this animation be created in Mathematica? Here's ...
user avatar
  • 4,360
5 votes
3 answers
250 views

Text rotation in GeoGraphics

I have a problem rotating some text in GeoGraphics. Whenever I rotate the text I am also getting a shift in the latitude. OS: Linux x86 (64-bit) FullVersionNumber: 12.1.1 As a minimum working ...
user avatar
  • 1,168
0 votes
1 answer
134 views

Ugly text in shaded graphics [closed]

I've looked around but can't find the solution to the following problem: Why is text so ugly in shaded graphics (ContourPlot, etc.)? Here's an illustration: ...
user avatar
1 vote
0 answers
36 views

How can a make a button that hides text,so text remains hidden until a person presses the button?

so this is the type of thing I'm trying to do: When I click on this button,it displays a hidden text:
user avatar
0 votes
1 answer
102 views

Frame around text or MaTeX? [duplicate]

This seems like it should be easy, but I can't figure out how to do it or any documentation of it. How does one add a frame (not an outline, but a frame) around Text...
user avatar
  • 1,406
1 vote
1 answer
103 views

How do I test that a string is a sentence? [closed]

For example, consider string = "this is a sentence." The best way I can think about is DictionaryWordQ. However, <...
user avatar
  • 1,601
1 vote
1 answer
39 views

How I can import data from URL by using output of GoogleCustomSearch?

I am trying to make a word cloud from all URLs that are as outputs after using google custom search so I think I need to read those URLs as data or text to can make a word cloud this is code just you ...
user avatar
2 votes
1 answer
63 views

Discrepancy between the size of a font (specified by FontSize) and the generated size by "Spacer" (both claimed to be in printer's points)

The documentation says FontSize specifies the vertical size of a font, in printer's points, and that Spacer specifies a spacer ...
user avatar
  • 483
0 votes
0 answers
26 views

How to get capital letter with graphic accent? E.g. when I type Á I get á

When I type in a text cell the word ANÁLISE I get in the screen ANáLISE. This occur in every word with ' ~ ^ . This problem just occur in Mathematica.
user avatar
1 vote
2 answers
69 views

How to convert an output cell in a text cell without having " " in the text?

This is part of my code: ...
user avatar
3 votes
1 answer
205 views

How to write graffiti, i.e., text on a polygon surface in Graphics3D?

Is there a relatively easy way to place Text[] on Polygon[] in Graphics3D? For example, I ...
user avatar

1
2 3 4 5
7