Questions tagged [suffix]

A suffix is a group of letters, usually of a regular form, that has a meaning within it's short form, that when applied to a word changes the meaning and/or intent of that word.

A suffix is a group of letters, usually of a regular form, that has a meaning within it's short form, that when applied to a word changes the meaning and/or intent of that word.

258 questions
0
votes
3 answers

Append auto-incrementing suffix to duplicated elements of a List

Given the following list : val l = List("A", "A", "C", "C", "B", "C") How can I add an auto-incrementing suffix to every elements so that I end up with a list containing no more duplicates, like the following (the ordering doesn't matter)…
cheseaux
  • 5,187
  • 31
  • 50
0
votes
1 answer

How to I get the first or last few characters of a string in a method chain?

If I use functional-style method chains for string manipulation, I can not use the usual machinery for getting the first or last few characters: I do not have access to a reference to the current string, so I can not compute indices. Example: [some,…
Raphael
  • 9,779
  • 5
  • 63
  • 94
0
votes
1 answer

Dynamically copy dataframe columns with suffix in R

I am looking for a way to copy a column "col1" x times and appending each of these copies with one of x strings from a character vector. Example: df <- data.frame(col1 = c(1,2,3,4,5)) suffix <- c("a", "b", "c") resulting in: df_suffix <-…
Michael
  • 1,281
  • 1
  • 17
  • 32
0
votes
1 answer

NLP verb to noun in Prolog

I'm trying to define a predicate verb_to_noun(Av,N). That will take a verb 'celebrate' and change it to the noun 'celebration'. I'm struggling not only to add the suffix -tion, but also to delete the 'e' from the end of the verb. I've also defined…
Kathy Dec
  • 13
  • 4
0
votes
1 answer

Adding suffix not working with sed and awk on macOS

These are the contents of t.txt ABCDEFG ABCDEFG ABCDEFG ABCDEFG I tried these commands to add a suffix to the end of the line: $ cat t.txt | sed -e 's/$/-asdf/' $ cat t.txt | awk '{ print $0 "-asdf" }' The result in…
Sean
  • 17
  • 4
0
votes
1 answer

Does stemDocument in R remove "ed" ending?

Below is how I stem my Corpus and my documents. However, for example "work" and "worked" show up a large amount of the time and these are obviosuly the same word for all intents and purposes in my analysis. Is there a package or some code snippet to…
agunner
  • 55
  • 7
0
votes
1 answer

Word not starting with di and men (prefix)

I am having a problem creating a regex that suits the following criteria: prefix : Not starting with “di” and “men” Sequences of character : a-z suffix : End with: • in, at, ah, iah, • sequences of vowel (a,e,i,o,u), • then “wi”, •…
shequin
  • 27
  • 6
0
votes
0 answers

[Batch]How can I copy and add a suffix to the newly copied files in subfolders?

This is the code I have so far: @echo off set /P suffix=Enter name to add: @echo off setlocal EnableDelayedExpansion PUSHD . cd "%%d" set n=0 for %%f in (*.*) do ( set /A n+=1 set "file[!n!]=%%f" ) set /A…
0
votes
1 answer

Implementing a Suffix Trie using OOP/C++

I am trying to implement a suffix trie in C++ for a programming assignment. Now I think I have the right idea, but I keep getting a segmentation fault and I haven't been able to find what's causing it. For this assignment, we are encouraged to use…
Luke Collins
  • 1,433
  • 3
  • 18
  • 36
0
votes
0 answers

How find suffix in tree

i am trying to make basic object oriented suffix tree console program and i dont know how to make boolean suffix(String s) method. My actual suffix method doesn't work properly. Finally it should looks like : Node is for object, SuffixTree create…
Johny.M
  • 1
  • 3
0
votes
1 answer

Stateless WCF service listener on same port

We have a situation where we have been using ordinary windows service based on WCF where we host a number of listeners on the same address, port with just additional suffix on the address, such…
J. Abrahamsson
  • 431
  • 4
  • 21
0
votes
2 answers

Change the order of characters in a word

I have the following nomenclature: 0100455_LM_Izaguirre I need to change to be as follows: LM_0100455 The idea would be to first put the suffix "LM", then the code "0100455" and erase everything else. The problem is that the suffix is not unique,…
Kokox
  • 519
  • 1
  • 9
  • 24
0
votes
2 answers

Batch for adding suffix of several files except of batchfiles

I already found some solution for renaming files. Some did not really work, some only added a suffix after the file ending like @echo off Setlocal enabledelayedexpansion For %%a in (*.*) Do ( Ren "%%a" "%%a Tenor 1" ) Pause&Exit My problem: I…
chrisdi91
  • 19
  • 5
0
votes
1 answer

Check parallelism of files using their suffixes

Given a directory of files, e.g.: mydir/ test1.abc set123.abc jaja98.abc test1.xyz set123.xyz jaja98.xyz I need to check that for every .abc file there is an equivalent .xyz file. I could do it like this: >>> filenames = ['test1.abc',…
alvas
  • 115,346
  • 109
  • 446
  • 738
0
votes
6 answers

Remove specific characters in filename

Is there any easy solution how to trim suffix in my filename? Problem is, that my suffix length is vary. Only the same string in filename is _L001. See the…
Paul
  • 311
  • 4
  • 13